Jump to content
Quack O'Neill

Is map in Inventory / Pick Up Map Task

Recommended Posts

I have a task synced to the player, a task state. Task state is connected to the Trigger

I had a look around and i found this code below and it worked for the guy in the thread i found it in (thread was from 2019), but it wont work for me. It dont give me any errors but the trigger condition isnt met either when i place a map in the map inventory slot.

("itemMap" in assignedItems player);

Screenshot of Trigger settings

 

this code below also dosnt work. but it dose work for a hand gun with HandgunWeapon instead of ItemMap

!(itemMap Jackson=="");

Share this post


Link to post
Share on other sites

if i put the exclamation mark in like this the condition is met and the trigger is triggered even if there is no map in my map slot or backpack or vehicle or vest. For a while i thought it was working but it wasnt 😞

!("itemMap" in assignedItems player);

 

Share this post


Link to post
Share on other sites

`in` makes case-sensitive comparison that's why it never matches the map. Try "ItemMap" instead of "itemMap".

  • Like 2

Share this post


Link to post
Share on other sites

remember that the ! infront of the text is the same as
Not("itemMap" in assignedItems player);

 

so try it without the ! maybe that will work.

  • Like 1

Share this post


Link to post
Share on other sites
On 2/25/2022 at 5:04 PM, _foley said:

`in` makes case-sensitive comparison that's why it never matches the map. Try "ItemMap" instead of "itemMap".

 

Yes!

"ItemMap" in assignedItems player

 

btw your preset condition civilian not present is totally useless with such condition. Any preset condition works along with the magic variables this or thisList in condition (or activation) field.

  • Like 1

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

×