Jump to content
Sign in to follow this  
pd3

Running a set of commands based on the presence of an inventory item

Recommended Posts

Is this something the scripting language facilitates? 

I'd like a set of script commands to run only if the player possesses a specific item in their inventory, in my particular case a piece of worn equipment.

 

Share this post


Link to post
Share on other sites

You could use the event handler "inventoryopened" ,"containeropened" or "take",if the equipment you want is picked up and not present at missionstart.

Share this post


Link to post
Share on other sites

You can put this condition into a Trigger condition.

 

"ItemGPS" in (items player + assignedItems player)

 

itemGPS is one example of an item.  Put the exact item classname there.

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  

×