omri2050 197 Posted April 28, 2021 Hello guys, some help.. I tried to create a trigger with Civilian present condition. The trigger fires even if an animal is there - Activation - Civilian Activation type - Present This is an image of it where you can see that an animal (Agent) enters the trigger area and trigger is activated.. Even trying to define the code with this this && ({_x isKindOf "Man"} count thisList) != 0 ended up in the same results...Any ideas? Share this post Link to post Share on other sites
RCA3 589 Posted April 29, 2021 thisList findIf {!(_x isKindOf "Animal")} > -1 or disable ambient life: enableEnvironment [false, true]; 1 Share this post Link to post Share on other sites
omri2050 197 Posted April 29, 2021 7 hours ago, RCA3 said: thisList findIf {!(_x isKindOf "Animal")} > -1 or disable ambient life: enableEnvironment [false, true]; I guess the EnableEnviroment takes effect on the whole map Nice, at least that, I'll try Thanks Share this post Link to post Share on other sites
pierremgi 4850 Posted April 30, 2021 thisList findIf {!(_x isKindOf "animal")} > -1 will return empty vehicles, crates, weapon holder from dead units... some objects like tables... as well Use instead: thisList findIf {_x isKindOf "CAManBase"} > -1 Note: 1 - use also a filter in on activation field because thisList (as is) will return all the stuff. So, (thisList select {_x isKindOf "CAManBase"}) will return alive civilian. 2 - The preset condition "civilian present" skips all dead men, which is fine. Be careful if you set your own condition with no preset. 2 Share this post Link to post Share on other sites
omri2050 197 Posted April 30, 2021 7 hours ago, pierremgi said: thisList findIf {!(_x isKindOf "animal")} > -1 will return empty vehicles, crates, weapon holder from dead units... some objects like tables... as well Use instead: thisList findIf {_x isKindOf "CAManBase"} > -1 Note: 1 - use also a filter in on activation field because thisList (as is) will return all the stuff. So, (thisList select {_x isKindOf "CAManBase"}) will return alive civilian. 2 - The preset condition "civilian present" skips all dead men, which is fine. Be careful if you set your own condition with no preset. It works, finally Such a simple thing (allegedly) with a complicated solution Thanks guys for the help! 1 Share this post Link to post Share on other sites