ResetWindVelocity

From Multi Theft Auto: Wiki
Revision as of 12:40, 2 July 2011 by Arran Fortuna (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

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