ResetWindVelocity

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This function resets the wind velocity in San Andreas to its default state.

Syntax

bool resetWindVelocity ( )

Returns

Returns true if successful, false otherwise.

Example

Click to collapse [-]
Client

This example returns the wind velocity to a player if they use the command 'resetwindvelocity'.

function commandResetWindVelocity()
   resetWindVelocity()
   outputChatBox("Wind velocity reset to default", 0, 255, 0)
end
addCommandHandler("resetwindvelocity", commandResetWindVelocity)
Click to collapse [-]
Server

This example returns the wind velocity for all players if they use the command 'resetwindvelocity'.

function commandResetWindVelocity()
   resetWindVelocity()
   outputChatBox("Wind velocity reset to default", root, 0, 255, 0)
end
addCommandHandler("resetwindvelocity", commandResetWindVelocity)

See Also