ResetWindVelocity

From Multi Theft Auto: Wiki
Revision as of 22:00, 2 July 2011 by Arran Fortuna (talk | contribs) (Upgraded examples)
(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

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