Weapons – ArmA: Armed Assault Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 20: Line 20:
The following will always work..
The following will always work..


[code]
player addWeapon "STINGER";
player addWeapon "STINGER";
player selectWeapon "STINGER";
player selectWeapon "STINGER";
[/code]


The following will NOT yeild the expected result...
The following will NOT yeild the expected result...


[code]
''if ( "STINGER" in weapons player) then {
if ( "STINGER" in weapons player) then {
   hint "has a Stinger";
   hint "has a Stinger";
} else {
} else {
   hint "has no stinger";
   hint "has no stinger";
}
}''
[/code]


... but this will...
... but this will...


[code]
''
 
if ( "Stinger" in weapons player) then {
if ( "Stinger" in weapons player) then {
   hint "has a Stinger";
   hint "has a Stinger";
} else {
} else {
   hint "has no stinger";
   hint "has no stinger";
}
}''


[/code]


A further warning using sidechat to list weapons will result in the weapon list being force to upper case, hints are left in the orginal case...
A further warning using sidechat to list weapons will result in the weapon list being force to upper case, hints are left in the orginal case...


[[User:BarmyArmy|BarmyArmy]]
[[User:BarmyArmy|BarmyArmy]]

Revision as of 23:05, 25 April 2007

KVPT, M107, and AKS74PSO do not exist right now. should these really be listed? or at least find a way to mark them that they are invalid right now.--Pyro05x 04:54, 27 January 2007 (CET)

I haven't verified this, so I don't want to enter it myself, but feel free to add a little note to the relevant entries that they might be (temporarily) non-functional. --Kronzky 17:04, 27 January 2007 (CET)

I have marked the relevant weapons as 'not yet available'.

btw - KPVT is available in the game the BRDM2 is armed with it, I think you meant the KSVK

Planck 18:38, 27 January 2007 (CET)

I noticed that this information was removed recently. A lot of us are running version 1.02 still; should the M16A4, M16A4_GL, M16A4_ACG, M16A4_ACG_GL, M107, AKS74PSO, and KSVK still be marked as version 1.04 content? Maybe add an "ArmA version" column? perhaps this information would clutter the wiki, but i think it would be neat to track the progress of content that is added.--Pyro05x 07:36, 20 February 2007 (CET)
I'm not sure there would be much point considering the next patch will make everyone equal as far as content and version numbers go, those that bother to update anyway.
Planck 15:06, 20 February 2007 (CET)

Names are case sensitive

Weapon names in ARMA and probably OFP are case sensetive, when detecting weapons.

The following will always work..

player addWeapon "STINGER"; player selectWeapon "STINGER";

The following will NOT yeild the expected result...

if ( "STINGER" in weapons player) then {

  hint "has a Stinger";

} else {

 hint "has no stinger";

}

... but this will...

if ( "Stinger" in weapons player) then {

  hint "has a Stinger";

} else {

 hint "has no stinger";

}


A further warning using sidechat to list weapons will result in the weapon list being force to upper case, hints are left in the orginal case...

BarmyArmy