முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

SetObjectMoveSpeed

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Set the move speed of an object.

NameDescription
objectidThe ID of the object to set the move speed of.
Float:speedThe speed at which to move the object (units per second).

Returns​

true - The function was executed successfully.

false - The function failed to execute. The object specified does not exist.

Examples​

new objectid = CreateObject(985, 1003.39154, -643.33423, 122.35060, 0.00000, 1.00000, 24.00000);
MoveObject(objectid, 1003.3915, -643.3342, 114.5122, 0.8);

SetObjectMoveSpeed(objectid, 1.5);
// Move speed changed from 0.8 to 1.5