Difference between revisions of "ForceWeapon"
Tehbugerz0r (talk | contribs) m |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
===From the Scripting Manual=== | ===From the Scripting Manual=== | ||
− | ''procedure ForceWeapon(ID, Primary, Secondary, Ammo: | + | ''procedure ForceWeapon(ID, Primary, Secondary, Ammo: Byte);'' |
'''Parameter Info:''' | '''Parameter Info:''' | ||
Line 15: | Line 15: | ||
<source lang="pascal"> | <source lang="pascal"> | ||
begin | begin | ||
− | + | ForceWeapon(ID, 3, 0, 0); | |
− | |||
− | ForceWeapon( ID, 3, 0, 0 ); | ||
// Forces player 'ID' to use AK as primary. | // Forces player 'ID' to use AK as primary. | ||
end; | end; |
Latest revision as of 15:50, 23 September 2012
From the Scripting Manual
procedure ForceWeapon(ID, Primary, Secondary, Ammo: Byte); Parameter Info: ID (Byte): Player ID to change weapon. Primary (Byte): Weapon Number to set primary weapon to. Secondary (Byte): Weapon Number to set secondary weapon to. Ammo (Byte): Ammo to give the player. 0 for default. Description: This function will force the specified player(ID) to change their Primary and Secondary weapons. NOTE: Set Ammo to 0 to use the default ammo count for the (Primary) gun.
Examples
begin
ForceWeapon(ID, 3, 0, 0);
// Forces player 'ID' to use AK as primary.
end;