Mission Scripting

From Off Grid Wiki
Revision as of 14:07, 3 May 2017 by Harry (talk | contribs) (Add MissionObject values as a test for adding tables)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Value Notes
name The name of the MissionObject (readonly)
type The type of the MissionObject (readonly)
triggered Has the MissionObject been triggered (readonly)
position The (x, y, z) position values of the MissionObject (read-write)
rotation The (x, y, z) euler angles of the MissionObject (read-write)
isActive Is the MissionObject added? (read-write)
isMoving Is the MissionObject moving? (readonly)
OnTriggerEnter The lua callback for when the trigger volume is entered (read-write)
OnTriggerExit The lua callback for when the trigger volume is exited (read-write)
OnPreInteract The lua callback for pre interactions, returning false from this will cancel the interaction (read-write)
OnStartInteracting The lua callback for when the MissionObject starts being interacted with (read-write)
OnStopInteracting The lua callback for when the MissionObject stops being interacted with (read-write)
SlerpToObject(MissionObject target, float time) Slerps to the position and rotation of another object in 'time' seconds
SlerpToPos(MissionObject target, float time, bool inWorldSpace) Slerps to a position in 'time' seconds (can be in world space or local space)
LerpToObject(MissionObject target, float time) Lerps to the position and rotation of another object in 'time' seconds
LerpToPos(MissionObject target, float time, bool inWorldSpace) Lerps to a position in 'time' seconds (can be in world space or local space)