Arma 3
endarz Jan 17, 2021 @ 12:10pm
SOLVED: triggerActivated: Type bool, expected condition
Currently having an issue making a condition for a holdAction in my scenario.

I am using 3den Enhanced's Hold Action creator to speed up the process, and have the following set as the conditionShow:
not alive officer && triggerActivated trigger_2

Upon mission start, the error message in the title appears, which I took as the trigger being interpreted as true/false instead of an object.
not alive officer
works just as intended, but I also want this action to appear only after this unit is dead AND a trigger is activated by a script.

Any solutions?
Last edited by endarz; Jan 17, 2021 @ 1:09pm
< >
Showing 1-5 of 5 comments
endarz Jan 17, 2021 @ 1:07pm 
Solved my own problem!

I completely scrapped using triggerActivated and put in conditionShow:
trigger_2 isEqualTo true

I forgot that "==" and "isEqualTo" are two different beasts, and initially I tried doing "trigger2 == true". Works flawlessly now, but good God was that a hassle lmao
Last edited by endarz; Jan 17, 2021 @ 1:08pm
Dankan37 Jan 18, 2021 @ 3:03am 
Anyway worth mentioning that triggerActivated trigger_2 returns a boolean value, which you must compare, it should have been: triggerActivated trigger_2 == true, this is because it's getting compared in a &&
endarz Jan 18, 2021 @ 12:48pm 
Originally posted by Dankan37:
Anyway worth mentioning that triggerActivated trigger_2 returns a boolean value, which you must compare, it should have been: triggerActivated trigger_2 == true, this is because it's getting compared in a &&

gotcha. so triggerActivated <trigger name> was right, but i just didn't specify what it should equal. i will definitely keep that in mind going forward. thanks!
MATTXYO Jan 20, 2021 @ 3:12pm 
Tested the initial condition you had in the first post.
not alive officer && triggerActivated trigger_2
Worked fine, no additional checks should be needed.

I must point out this was using only the base game and not 3Eden Enhanced.
Last edited by MATTXYO; Jan 20, 2021 @ 3:16pm
endarz Jan 20, 2021 @ 3:54pm 
Originally posted by MATTXYO:
Tested the initial condition you had in the first post.
not alive officer && triggerActivated trigger_2
Worked fine, no additional checks should be needed.

I must point out this was using only the base game and not 3Eden Enhanced.

That's weird then. Yeah, I've had no further issues after giving triggerActivated <trigger> something to compare to.

Another Arma scripting anomaly i guess lmao
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Jan 17, 2021 @ 12:10pm
Posts: 5