Func fish pool: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Fixed up the page.)
Line 3: Line 3:


==Entity description==
==Entity description==
It creates a school of interactive fish that swim near this entity.
It creates a school of interactive [[fish]] that swim near this entity.
{{bug|Killing the func_fish_pool does not delete the fish, the fish entity can be killed as a workaround.}}
{{Warning|Killing the fish entity before killing the func_fish_pool entity crashes the game, the func_fish_pool entity must be killed first.}}


== Keyvalues ==
== Keyvalues ==
{{KV|World model|studio|The fish model:}}
{{KV Targetname}}
{{note|The default model, models/Junkola.mdl, won't work properly. Use one of the following models instead.}}
{{KV Parentname}}
* <code>models/props/de_inferno/goldfish.mdl</code> gives a river fish.
 
* <code>models/props/cs_militia/fishriver01.mdl</code> gives a Piranha.
{{KV|World model|studio|The fish model.}}
{{KV|Fish Count|integer|Number of Fish in this Pool}}
{{KV|Fish Count|integer|Number of fish in this pool.}}
{{KV|Max Range|float|How far away a Fish can wander (max 255)}}
{{KV|Max Range|float|How far away a fish can wander, in units. Maximum is 255 units.}}
{{KV Origin}}

Revision as of 03:42, 18 July 2018

Fish swimming inside water, thanks to a func_fish_pool entity.

Template:Base point

Entity description

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

Icon-Bug.pngBug:Killing the func_fish_pool does not delete the fish, the fish entity can be killed as a workaround.  [todo tested in ?]
Warning.pngWarning:Killing the fish entity before killing the func_fish_pool entity crashes the game, the func_fish_pool entity must be killed first.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Parentname:
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 ([todo internal name (i)]) <model path>
The fish model.
Fish Count ([todo internal name (i)]) <integer>
Number of fish in this pool.
Max Range ([todo internal name (i)]) <float>
How far away a fish can wander, in units. Maximum is 255 units.

Origin:

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