Jump to content
Sign in to follow this  
-J4F- Thunder666

knowing Unit Items ?

Recommended Posts

If you're looking for the class name of, lets say, a vest, put the following code into the units init line:

hint format ["%1",vest this];

The above code will put a message in the top right of your screen displaying the class name of the vest the unit is wearing.

There are several other commands you can use as well, such as uniform, goggles, headgear, and backpack.

If you want to return the class name of a vehicle or soldier, use typeOf.

Share this post


Link to post
Share on other sites

Arma 3 also introduced the following scripting commands that return the current items:

- assignedItems

- backpackItems

- vestItems

- uniformItems

- handgunItems

- primaryWeaponItems

- secondaryWeaponItems

Prior to removing an item you should make sure to unassign it first using unassignItem.

Edited by neokika

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×