Jump to content
omri2050

Civilian trigger fired by animals

Recommended Posts

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..
DtNkckg.png

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
thisList findIf {!(_x isKindOf "Animal")} > -1

or disable ambient life:

enableEnvironment [false, true];

 

  • Like 1

Share this post


Link to post
Share on other sites
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

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.

  • Like 2

Share this post


Link to post
Share on other sites
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!

  • 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

×