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

SetPlayerGravity

எச்சரிக்கை

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

Description​

Set a player's gravity.

NameDescription
playeridThe ID of the player to set the gravity.
Float:gravityThe value that the gravity should be set to (between -50 and 50).

Returns​

true - The function executed successfully.

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

Examples​

public OnPlayerConnect(playerid)
{
// Set moon-like gravity
SetPlayerGravity(playerid, 0.001);

return 1;
}

Notes​

குறிப்பு

Default gravity is 0.008.