Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
HFTB

adding a named object to an AI units' inventory

Recommended Posts

i know i can addWeapon a radio (as an example) to a unit, but what if i want to give that object a name? if i want a player to have to retrieve a radio (or any other object) from an AI unit, but multiple units have that object, how can i ensure that the specific item required has a name so that i can check via trigger whether the player has retrieved it?

Share this post


Link to post
Share on other sites

You can't, they are not actual objects you can refrence. You can only check if they have one of that type of classname in their inventory.

http://www.kylania.com/ex/?p=124

There is also an rpg items mod that has a lot more items. Ill try and find a link

---------- Post added at 12:11 PM ---------- Previous post was at 12:08 PM ----------

Here is the rpg item mod.

http://forums.bistudio.com/showthread.php?142673-Arma-Role-Playing-Items-ARP-Mod

Share this post


Link to post
Share on other sites

There are a select number of items, that are placeable/spawnable, that can also be added to your inventory. Take a look Here, though those items are probably not the items you're wanting to deal with.

On another note, not to compromise the integrity of this thread, but it would be nice if I could add a jerry can to an infantries inventory. I'm sort of working with HOGmason on an "advanced repair script", where a player engineer has to obtain a fuel can and fill it with fuel before he can refuel a vehicle. Currently we're creating a pseudo fuel can by assigning a variable.

Share this post


Link to post
Share on other sites

thanks guys. i've seen those pages and they aren't quite what i'm after but i'll find some middle ground.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×