Jump to content
Hossus

ACE_bodyBagObject in Trigger

Recommended Posts

hi

real quick why is this not working as trigger con.?

{typeOf _x == "ACE_bodyBagObject"} count thisList > 0

 

thought in know how to setup a trigger by now........... what am i missing here?

 

Thx

 

Share this post


Link to post
Share on other sites

Well, this looks super janky to me, but it seems to work:

count (vehicles inAreaArray thisTrigger select {_x isKindOf "ACE_bodyBagObject"}) > 0

One reason your original code didn't work is that thisList is empty.

  • Like 1

Share this post


Link to post
Share on other sites

THX Man
it works

Share this post


Link to post
Share on other sites
On 5/14/2020 at 9:30 PM, Harzach said:

Well, this looks super janky to me

and it indeed is super janky 😄

 

((vehicles inAreaArray thisTrigger) findIf {_x isKindOf "ACE_bodyBagObject"}) != -1

 

  • Haha 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

×