FANDOM



This command will stop the animation in a specified 3D object.

Syntax
STOP OBJECT Object Number
Parameters
Object Number

Integer
The object number

Returns

This command does not return a value.

Description

The parameter should be specified using an integer value.

Example Code
sync on : sync rate 0 : hide mouse:cls 0

ObjectNumber=1

load object "models\model.x",ObjectNumber

append object "models\extraanim.x", ObjectNumber, total object frames(ObjectNumber)+1

set object ObjectNumber,1,0,1,2,1,1,1

set object speed ObjectNumber,5

play object ObjectNumber,0,total object frames(ObjectNumber)

while mouseclick()=0

sync

endwhile

while mouseclick()=1:endwhile

stop object ObjectNumber

if object exist(ObjectNumber)=1 then delete object ObjectNumber

end
Community content is available under CC-BY-SA unless otherwise noted.