OnObjectUpdate
Jump to navigation
Jump to search
Description:
Called when one of object's position, rotation, alpha is updated or it is moved.
Parameters:
( objectId, updatetype)
objectId : The ID of the object
updatetype : See below
( AlphaUpdate=0, PositionUpdate=1, RotationToUpdate=2, MoveToUpdate=3, TrackingBumpsShots=4)
Return Values:
This function does not return any specific values.
Example
function OnObjectUpdate(id, type) { if(type==3) { print("The object "+id+ " is in motion"); } }
Related Functions
The following functions may be helpful as they relate to this function in one way or another.