Difference between revisions of "Template:HPL2 InstanceVars Prop"

From Frictional Wiki
Jump to navigation Jump to search
m
Line 25: Line 25:
 
| PlayerInteractCallbackAutoRemove || Bool || false || Should interact callback be removed when entity is interacted with and is callback called.
 
| PlayerInteractCallbackAutoRemove || Bool || false || Should interact callback be removed when entity is interacted with and is callback called.
 
|-
 
|-
 +
{{#ifeq:{{{1|}}}|amfp|
 +
{{!}} UpdateAnimationWhenCulled {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If animations should be updated when the prop is culled.
 +
{{!}}-
 +
{{!}} GlowEnabled {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If the prop should glow like an item until interacted with.
 +
{{!}}-
 +
{{!}} GlowColor {{!}}{{!}} Color {{!}}{{!}} 0.5 0.5 1.0 0 {{!}}{{!}} The main color of the glow.
 +
{{!}}-
 +
{{!}} GlowOutlineColor {{!}}{{!}} Color {{!}}{{!}} 0 0 0.5 0 {{!}}{{!}} The outline color of the glow.
 +
{{!}}-
 +
}}
 
|}
 
|}

Revision as of 20:46, 12 January 2025

Instance Vars (All Props)
Name Type Default Description
CastShadows Bool true If entity casts shadows.
StaticPhysics Bool false If the mass of all bodies should be 0.
If enabled, the entity cannot be moved by physics or player interactions.
IsAffectedByDecal Bool true If decals can be created on entity.
CallbackFunc String A callback function used for a number of events. Syntax: void Func(string &in asEntityName, string &in asType). 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.
ConnectionStateChangeCallback String A callback called when ever the connection state changes (button being switched on). Syntax: void Func(string &in asEntityName, int alState). alState: -1=off, 0=between, 1=on
FullGameSave Bool false If the all things in the entity should be saved when exiting the level. Only use on few entities!
If enabled, additional entity properties are saved, such as the open amount of SwingDoors.
PlayerLookAtCallback String Callback called when player looks at entity. Syntax: void Func(string &in asEntity, int alState) alState: 1=looking, -1=stopped looking
PlayerLookAtCallbackAutoRemove Bool false Should look at callback be removed when entity is looked at and callback called.
PlayerInteractCallback String Callback called when player interacts with entity. Syntax: void Func(string &in asEntity)
PlayerInteractCallbackAutoRemove Bool false Should interact callback be removed when entity is interacted with and is callback called.