Helper functions to handle area objects
void Area_MoveLinearTo(const tString &in asName, const tString &in asTargetEntity, float afAcceleration, float afMaxSpeed, float afSlowDownDist=0.0f, bool abResetSpeed=true, const tString &in asCallback="")
Moves the specified area to the current position of the target entity. !Does not work on Liquid Areas, instead use LiquidArea_MoveLinearTo!
void Area_PlaceAtEntity(const tString &in asAreaName, const tString &in asTargetEntity, bool abAlignRotation=false)
Places the specified area at another entity, optionally aligning its rotation with the target entity.
void Area_StopMovement(const tString &in asName)
Stops an area that is already moving. !This is not for liquid areas!
bool Doorway_PlayerIsInGroup(const tString &in asGroupName)
Returns true if the player has passed through one of the doorway areas belonging to this group and hasn't gone back out.
void Doorway_SetPlayerIsInGroup(const tString &in asGroupName, bool abIsInGroup=true)
Explicitly set, for if the player starts in a group or is teleported in or out.
bool Doorway_EntityIsInGroup(const tString &in asEntityName, const tString &in asGroupName)
Returns true if the specified entity has passed through one of the doorway areas belonging to this group and hasn't gone back out. Note that this will only return true if the entity has physically passed though the doorway, not if they start out inside or are teleported into the area.
void Doorway_SetEntityIsInGroup(const tString &in asEntityName, const tString &in asGroupName, bool abIsInGroup=true)
Explicitly set, for if the specified entity starts in a group or is teleported in or out.
void LiquidArea_MoveLinearTo(const tString &in asName, const tString &in asTargetEntity, float afAcceleration, float afMaxSpeed, float afSlowDownDist=0.0f, bool abResetSpeed=false, const tString &in asCallback="")
Moves the specified liquid area to the current position of the target entity.
void LiquidArea_StopMovement(const tString &in asName)
void LiquidArea_SetEffectOnExit(const tString &in asName, bool abState)
Sets whether screen effects should be shown when the camera leaves the area.
void StickyArea_AttachEntity(const tString &in asArea, const tString &in asEntity, const tString &in asBody)
Attaches an entity to a sticky area. The entity must have a physics body.
void StickyArea_AttachBody(const tString &in asArea, const tString &in asBody)
Attaches a physics body to a sticky area.
void StickyArea_Detach(const tString &in asArea)
Detaches anything attached to a sticky area.
iLuxEntity StickyArea_GetProp(const tString &in asArea)
Returns the entity attached to the area.
Returns: iLuxEntity @, the attached entity of the area, or null if no entity is attached.
tString StickyArea_GetAttachedEntityName(const tString &in asArea)
Returns the name of the attached entity.
Returns: tString , name of the attached entity. An empty string if no entity is attached.
iPhysicsBody StickyArea_GetBody(const tString &in asArea)
Returns the body attached to the area.
Returns: iPhysicsBody @, the attached body of the area, or null if no body is attached.
float StickyArea_GetPoseTime(const tString &in asArea)
Returns the time it takes for the specified sticky area to pose an attached entity.
Returns: float, pose time in seconds.
float CameraAnimationNode_GetMaxYaw(const tString &in asArea)
Returns the maximum yaw for the specified node.
Returns: float, max yaw in radians.
float CameraAnimationNode_GetMaxPitch(const tString &in asArea)
Returns the maximum pitch for the specified node.
Returns: float, max pitch in radians.
float CameraAnimationNode_GetLookSpeedMul(const tString &in asArea)
Returns the look speed multiplier for the specified node.
Returns: float, look speed multiplier.
float CameraAnimationNode_GetForwardTime(const tString &in asArea)
Returns the time it takes to go to the next node in the animation.
Returns: float, forward time in seconds
float CameraAnimationNode_GetForwardSpeed(const tString &in asArea)
Returns the forward speed for the specified node.
Returns: float, forward speed measured in “nodes per second”
float CameraAnimationNode_GetBackTime(const tString &in asArea)
Returns the time it takes to go back to this node from the next node in the animation.
Returns: float, back time in seconds
float CameraAnimationNode_GetBackSpeed(const tString &in asArea)
Returns the back speed for the specified node.
Returns: float, back speed measured in “nodes per second”
float CameraAnimationNode_GetAutoMove(const tString &in asArea)
Returns the amount of auto move in the specified node.
Returns: float, auto move amount, 1 being full speed ahead and -1 being full speed back.
void CameraAnimationNode_SetAutoMove(const tString &in asArea, const float afAutoMove)
Sets the auto move amount for the specified node.
void CameraAnimationNode_FadeAutoMove(const tString &in asArea, const float afAutoMove, const float afTime, const eEasing aEasing=eEasing_QuartInOut)
Fades the auto move amount for the specified node.
float CameraAnimationNode_GetLookMoveDist(const tString &in asArea)
float CameraAnimationNode_GetLookMoveAngle(const tString &in asArea)
bool CameraAnimationNode_GetInteractiveMovement(const tString &in asArea)
Returns if the node takes movement input from the player.
Returns: bool, true if the node's movement is interactive.
void CameraAnimationNode_SetInteractiveMovement(const tString &in asArea, bool abX)
Sets if the node should take movement input from the player.
bool CameraAnimationNode_GetCrouchOnExit(const tString &in asArea)
Returns true if the player should crouch if the animation stops at this node.
Returns: bool, true if the player should crouch on exit.
bool CameraAnimationNode_GetInitToCamera(const tString &in asArea)
Returns true if the node should be placed at the camera's position and orientation when the animation starts.
Returns: bool, true if the node should initialize to the camera.
void CameraAnimationNode_SetInitToCamera(const tString &in asArea, bool abInitToCamera)
Sets if the node should be placed at the camera's position and orientation when the animation starts.
bool CameraAnimationNode_GetUseSpeedFading(const tString &in asArea)
Returns true if the node fades its speeds (back and forward) between this and the previous node in the animation.
Returns: bool, true if the node fades its speeds.
tString CameraAnimationNode_GetCallbackFunc(const tString &in asArea)
Returns the callback function of the specified node.
Returns: tString , the callback function.
void CameraAnimationNode_SetCallbackFunc(const tString &in asArea, const tString &in asFunction)
Sets the callback function of the specified node.
bool CameraAnimationNode_HasBackMovement(const tString &in asArea)
Returns true if it's possible to move from the next node in the animation to this one.
Returns: bool, true if it's possible to move back to this node.