OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: JasonO on 04 Jan 2010, 21:43:49
-
Hi all,
In ARMA2 there is now the command items (http://www.ofpec.com/COMREF/index.php?action=details&id=1033&game=All), used to the list the items on the player. However, I cannot find how to add (and remove) an item? I found the classnames in the ARMA2 Weapons list on the COMREF but no relevent command to add them.
Any help would be appreciated.
Thanks,
-
I believe its used like this addweapon "ItemWatch" and removeweapon "ItemWatch" to remove
some more =
"ItemMap",
"ItemCompass",
"ItemWatch",
"ItemRadio",
-
Heya,
Thats what I tried as I saw they were Weapon Classnames but it appears to be a bit.. odd.
This works fine with NV Goggles and Binoculars.
w1 removeWeapon "NVGoggles"
However, when I try ItemMap (taken from this list (http://www.ofpec.com/COMREF/index.php?action=read&id=210)) it doesn't remove it. More specificly I'm trying to remove the map from a player. No matter how I run this (using player instead of w1 etc) he still has access to the map.
Edit - Found the problem. Even though you remove the map from the player (which does actually work) to actually stop the player viewing the map you need to remove the item 'ItemGPS' as well.
Solved!
Thanks