Home   Help Search Login Register  

Author Topic: [SOLVED] Adding Items to the player  (Read 1523 times)

0 Members and 1 Guest are viewing this topic.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
[SOLVED] Adding Items to the player
« on: 04 Jan 2010, 21:43:49 »
Hi all,

In ARMA2 there is now the command items, 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,
« Last Edit: 04 Jan 2010, 22:02:27 by JasonO »

Offline DeanosBeano

  • Addons Depot Staff
  • *****
  • SirDeanosbeano bstowed on me by sui ;)
    • Fraghaus
Re: Adding Items to the player
« Reply #1 on: 04 Jan 2010, 21:52:20 »

 I believe its used  like this     addweapon "ItemWatch"  and removeweapon "ItemWatch" to remove

 some more =

 "ItemMap",
        "ItemCompass",
        "ItemWatch",
        "ItemRadio",

 
« Last Edit: 04 Jan 2010, 21:54:45 by DeanosBeano »
I love ofp

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Adding Items to the player
« Reply #2 on: 04 Jan 2010, 21:56:33 »
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.
Code: [Select]
w1 removeWeapon "NVGoggles"
However, when I try ItemMap (taken from this list) 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
« Last Edit: 04 Jan 2010, 22:03:05 by JasonO »