Difference between revisions of "Template:HPL2 InstanceVars Prop"
Jump to navigation
Jump to search
m |
m |
||
(4 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
| StaticPhysics || Bool || false || If the mass of all bodies should be 0.<br>If enabled, the entity cannot be moved by physics or player interactions. | | StaticPhysics || Bool || false || If the mass of all bodies should be 0.<br>If enabled, the entity cannot be moved by physics or player interactions. | ||
|- | |- | ||
+ | {{#ifeq:{{{1|}}}|amfp| | ||
+ | {{!}} IsOccluder {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If objects behind should be culled. | ||
+ | {{!}}- | ||
+ | }} | ||
| IsAffectedByDecal || Bool || true || If decals can be created on entity. | | IsAffectedByDecal || Bool || true || If decals can be created on entity. | ||
|- | |- | ||
− | | CallbackFunc || String || || A callback function used for a number of events. Syntax: <code>void Func(string &in asEntityName, string &in asType)</code>. | + | | CallbackFunc || String || || A callback function used for a number of events. Syntax: <code>void Func(string &in asEntityName, string &in asType)</code>. asType can be OnPickup, Break, OnIgnite |
|- | |- | ||
| ConnectedProps || String || || Props that are connected to this entity and what will happen will depend upon type of prop and what happens. OnBreak makes the connected props active and gives them an impulse. Enter with space and/or comma between entity names. | | ConnectedProps || String || || Props that are connected to this entity and what will happen will depend upon type of prop and what happens. OnBreak makes the connected props active and gives them an impulse. Enter with space and/or comma between entity names. | ||
Line 23: | Line 27: | ||
| PlayerInteractCallback || String || || Callback called when player interacts with entity. Syntax: <code>void Func(string &in asEntity)</code> | | PlayerInteractCallback || String || || Callback called when player interacts with entity. Syntax: <code>void Func(string &in asEntity)</code> | ||
|- | |- | ||
− | | PlayerInteractCallbackAutoRemove || Bool || false || Should interact callback be removed when entity is interacted with and callback called. | + | | PlayerInteractCallbackAutoRemove || Bool || false || Should interact callback be removed when entity is interacted with and is callback called. |
|- | |- | ||
+ | {{#ifeq:{{{1|}}}|amfp| | ||
+ | {{!}} GlowEnabled {{!}}{{!}} Bool {{!}}{{!}} true {{!}}{{!}} If the object should have a glowing effect. Only works on interactables! | ||
+ | {{!}}- | ||
+ | {{!}} GlowColor {{!}}{{!}} Color {{!}}{{!}} 0.5 0.5 1.0 0 {{!}}{{!}} Color of the objects glow. | ||
+ | {{!}}- | ||
+ | {{!}} GlowOutlineColor {{!}}{{!}} Color {{!}}{{!}} 0 0 0.5 0 {{!}}{{!}} Color of the outline when object is in focus | ||
+ | {{!}}- | ||
+ | {{!}} UpdateAnimationWhenCulled {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} Should the animation be reset when the player isn't looking. | ||
+ | {{!}}- | ||
+ | }} | ||
|} | |} |