Difference between revisions of "Template:HPL2 InstanceVars Prop"

From Frictional Wiki
Jump to navigation Jump to search
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.
 
|-
 
|-
Line 26: Line 30:
 
|-
 
|-
 
{{#ifeq:{{{1|}}}|amfp|
 
{{#ifeq:{{{1|}}}|amfp|
{{!}} UpdateAnimationWhenCulled {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If animations should be updated when the prop is culled.
+
{{!}} GlowEnabled {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If the object should have a glowing effect. Only works on interactables!
 
{{!}}-
 
{{!}}-
{{!}} GlowEnabled {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} If the prop should glow like an item until interacted with.
+
{{!}} GlowColor {{!}}{{!}} Color {{!}}{{!}} 0.5 0.5 1.0 0 {{!}}{{!}} Color of the objects glow.
 
{{!}}-
 
{{!}}-
{{!}} GlowColor {{!}}{{!}} Color {{!}}{{!}} 0.5 0.5 1.0 0 {{!}}{{!}} The main color of the glow.
+
{{!}} GlowOutlineColor {{!}}{{!}} Color {{!}}{{!}} 0 0 0.5 0 {{!}}{{!}} Color of the outline when object is in focus
 
{{!}}-
 
{{!}}-
{{!}} GlowOutlineColor {{!}}{{!}} Color {{!}}{{!}} 0 0 0.5 0 {{!}}{{!}} The outline color of the glow.
+
{{!}} UpdateAnimationWhenCulled {{!}}{{!}} Bool {{!}}{{!}} false {{!}}{{!}} Should the animation be reset when the player isn't looking.
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
|}
 
|}

Revision as of 22:25, 14 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.