ResetWindVelocity: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server client function}} This function resets the wind velocity in San Andreas to its default state. ==Syntax== <syntaxhighlight lang="lua"> bool resetWindVelocity ( ) </syntaxhighlight> ===Re...")
(No difference)

Revision as of 12:40, 2 July 2011

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

Syntax

bool resetWindVelocity ( )

Returns

Returns true if successful, false otherwise.

Example

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

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

See Also

Shared