Jump to content
Sign in to follow this  
larcenn

trigger condition !alive

Recommended Posts

Hi

I have a problem in a condition trigger,

I create a Tower :

tower1 = "Land_TTowerBig_2_F" createVehicle getMarkerPos posMission;

in other script, i create a trigger :

trg_mission = createTrigger["EmptyDetector",getMarkerPos posMission]; 
trg_mission setTriggerArea[1000,1000,0,false];
trg_mission setTriggerStatements["!(alive tower1)", "statusobj = 1;publicVariable 'statusobj';", ""]; 	

the trigger don't pass TRUE if a destroy "tower1" :(

If i change "!alive tower1" by "true" it's works.

Do you have a solution ?

Share this post


Link to post
Share on other sites

The following needs to have a string when trying to get the position of a marker:

getMarkerPos posMission
//should be
getMarkerPos "posMission"

Unless posMission is a variable containing a string, which is a marker.

Share this post


Link to post
Share on other sites

nope, the value of posMission is "Kavala"

The tower spawn, but the trigger not found.

I used a if now.

Thanks ;)

Share this post


Link to post
Share on other sites

This is probably not the problem, but I prefer using damage check instead of alive with buildings.

For example:

damage tower1 > 0.8

Share this post


Link to post
Share on other sites

If Shuko's suggestion doesn't work, make sure tower1 is not null and make your trigger condition "this && !(alive tower1)", because otherwise a triggerArea is not really senseful.

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
Sign in to follow this  

×