Hpl3:Game:scripting:function reference:helper props
Jump to navigation
Jump to search
Contents
helper_props.hps
SwingDoor_PushOpen
void SwingDoor_PushOpen(const tString &in asName,
float afImpulseAmount,
int alNumOfTimes=1,
float afTimeBetweenPushes=0.1)
Pushes a door open using one or many impulses
- asName: name of the door.
- afImpulseAmount: Amount of impulse that will be applied to the door.
- alNumOfTimes: Number of times the impulse will be applied.
- afTimeBetweenPushes: Pause interval between two impulses.
_Timer_HelperPushOpen_Impulse
void _Timer_HelperPushOpen_Impulse(const tString &in asTimer)
_Timer_HelperPushOpen_AutoClose
void _Timer_HelperPushOpen_AutoClose(const tString &in asTimer)
Grab_GetGrabbedProp
cLuxProp Grab_GetGrabbedProp()
Returns the currently grabbed prop, or null if there isn't one.
Returns: a pointer to the currently grabbed prop
Entity_SetCustomInteractIcon
void Entity_SetCustomInteractIcon(const tString &in asName,
eCrossHairState aIcon)
Sets the interaction icon for an entity. Currently only works for MoveBody, MoveableButton, Lever, Rigid and Triggers.
- asName: name of the entity.
- aIcon: The interaction icon.