This article's documentation is for anything that uses the Source engine. Click here for more information.

prop_hallucination

From Valve Developer Community
Jump to navigation Jump to search
Nuvola apps ksnapshot.png
This article or section needs a screenshot to help visually convey the subject.
You can upload screenshots at Special:Upload. For help, see Help:Images.
Class hierarchy
CProp_Hallucination
CBaseAnimating
CBaseEntity
prop_hallucination.cpp

prop_hallucination is a model entity available in all Source Source games since Alien Swarm Alien Swarm. It is a prop that disappears after being looked at.

Note.pngNote:This entity is not present in Portal 2 Portal 2 's FGD, but still exists in-engine.

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

Enabled Chance (EnabledChance) <float>
Percentage chance the hallucination starts enabled. 0 is always off, 100 is always on.
Visible Time (VisibleTime) <float>
Number of seconds the hallucination stays visible from the first frame it can be seen.
Recharge Time (RechargeTime) <float>
Number of seconds the hallucination stays invisible before it can be seen again. 0 to disable recharging.

Inputs

Enable
Enable the hallucination algorithm.
Disable
Disable the hallucination algorithm.
SetVisibleTime <floatRedirectInput/float>
Set Visible Time.
SetRechargeTime <floatRedirectInput/float>
Set Recharge Time.