Check if Agent Has Weappon

Rabassa

Member
How can I set a variable to check if the agent has a weapon? I'd like the agent to search for a weapon if it doesn't already have one.
 
There currently is not a task that checks for a given ItemType. I am currently traveling so cannot create the task but you can create a conditional task by calling Inventory.GetItemTypeCount and comparing that to 0. If you do a search for GetItemTypeCount within the project you'll see a lot of examples of its use.
 
Top