larcenn 10 Posted March 23, 2015 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
jshock 513 Posted March 23, 2015 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
larcenn 10 Posted March 23, 2015 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
demonized 20 Posted March 23, 2015 maybe add in setTriggerActivation Share this post Link to post Share on other sites
shuko 59 Posted March 24, 2015 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
Heeeere's johnny! 51 Posted March 24, 2015 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