SetConveyorBeltVelocity - ObjectReference
Member of: ObjectReference Script
Sets a conveyor belt velocity in local-space.
SyntaxEdit
Function SetConveyorBeltVelocity( float afLinVelX, float afLinVelY, float afLinVelZ ) native
ParametersEdit
- afLinVelX: New local-space linear velocity on the x-axis.
- afLinVelY: New local-space linear velocity on the y-axis.
- afLinVelZ: New local-space linear velocity on the z-axis.
Return ValueEdit
None
ExamplesEdit
Event OnActivate(ObjectReference aSource)
Self.SetConveyorBeltVelocity(0.5,1.0,0.0);
EndEvent
NotesEdit
- This fails gracefully. If no conveyor belt exists on the object it does nothing. No results are returned.