From Valve Developer Community
Jump to: navigation, search
Fish swimming inside water, thanks to a func_fish_pool entity.

func_fish_pool is a point entity available in all Source games.

Entity description

It creates a school of interactive fish that swim near this entity.

Bug.png Bug: Killing the func_fish_pool does not delete the fish, the fish entity can be killed as a workaround.
Warning.png Warning: Killing the fish entity before killing the func_fish_pool entity crashes the game, the func_fish_pool entity must be killed first.



Name (targetname) <string>
The targetname that other entities refer to this entity by.
Entity Scripts (vscripts) <scriptlist> (in all games since <Left 4 Dead 2>)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Script think function (thinkfunction) <string> (in all games since <Left 4 Dead 2>)
Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call.
Note.png Note: Try to avoid expensive operations in this function, as it may cause performance problems.


Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
World model (model) <model path>
The fish model.
Fish Count (fish_count) <integer>
Number of fish in this pool.
Max Range (max_range) <float>
How far away a fish can wander, in units. Maximum is 255 units.


Origin (X Y Z) (origin) <origin>
The position of this entity's center in the world. Rotating entities typically rotate around their origin.