Jump to content
Saltoperator

countType isn't counting my trigger

Recommended Posts

I am (attempting to) using countType for the first time in a mission, and wish to activate a trigger when it returns <= 1. It seemed pretty straight forward but alas...

 

For demo purposes, I have placed a regular rifleman – "B_Soldier_F" – inside a trigger called "demo_trigger".

Whenever I try to return that he is inside the trigger, it always gives false or 0:

 

I have used:

"B_Soldier_F" countType list demo_trigger >= 1

 

"B_Soldier_F" countType (list demo_trigger) >= 1

 

{typeOf _x == "B_Soldier_F"} count (list demo_trigger) >= 1

 

"B_Soldier_F" countType (list demo_trigger) - to try to return 1, but it returns 0.

 

All of this is done on a clean session of Arma with no mods activated, so it can't be a bug caused by a mod.

 

Below are a couple of screenshots proving my issues. There is a box present also – I tried countType on objects too, with no results.

 

https://imgur.com/ehmuSc1

https://imgur.com/iHKc1Lu

https://imgur.com/ENoKYJW

https://imgur.com/H4Ak7ai

https://imgur.com/6SdGo3t

 

This honestly brings me on the verge of uninstalling, because I cannot fathom what I am doing wrong...

 

 

Share this post


Link to post
Share on other sites

That's most likely because the trigger activation is "None".

  • 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

×