OnObjectUpdate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
</source>| | </source>| | ||
relfuncs=*[[OnObjectDestroyed]] | relfuncs=*[[OnObjectDestroyed]] | ||
*[[ | *[[OnObjectStreamIn]] | ||
*[[IsObjectStreamedIn]] | *[[IsObjectStreamedIn]] | ||
}} | }} |
Latest revision as of 09:12, 14 November 2023
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.