ForceWeaponEx

From Soldat Community Wiki
Revision as of 09:53, 10 September 2012 by Tehbugerz0r (talk | contribs) (Created page with "===Scripting Manual=== ''procedure ForceWeaponEx(ID, Primary, Secondary, Ammo, SecAmmo: byte);'' '''Parameter Info:''' ID (Byte): Player ID to change weapon. 0 for all. ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Scripting Manual

procedure ForceWeaponEx(ID, Primary, Secondary, Ammo, SecAmmo: byte);

Parameter Info:
 ID (Byte): Player ID to change weapon. 0 for all.
 Primary (Byte): Weapon Number to set primary weapon to.
 Secondary (Byte): Weapon Number to set secondary weapon to.
 Ammo (Byte): Primary Ammo to give the player. 0 for default.
 SecAmmo (Byte): Secondary Ammo to give the player. 0 for default.

Description:
 This function will force the specified player(ID) to change their Primary and Secondary weapons and/or ammo.

Examples

begin
    ForceWeaponEx( 0, 3, 0, 0, 1 );
    // Forces all players to use AK as primary and a USSOCOM with 1 ammo as secondary.
end;