Scripting/Squirrel/Functions/ResetAllWeaponData

From Vice City Multiplayer [MIRROR]
Jump to: navigation, search

This function will reset a weapon's settings to the defaults. (damage, range, etc)

Syntax

ResetAllWeaponData( )

Arguments

  • N/A

Example

The following example will reset all weapons data to defaults. <source lang=squirrel> function onPlayerCommand( player, cmd, text ); {

    if( cmd == "resetweapons" )
    {
         ResetAllWeaponData( );
         Message( "All weapons were reseted to default settings !!" );
    }

} </source>

Notes

Call onPlayerCommand were used in this example. More info about them in the corresponding pages.

Related Functions