Leysard Posted November 26, 2012 Posted November 26, 2012 I have set a Trigger Zone. When the player first goes thrue the zone, he will receive a first message. When he comes thrue the zone a second time, it's another message, and so one up to 8 times. The problem I have is that all messages are delivered after the first passage thrue the trigger zone. What is wrong with the way I'm doing it ? Mission start, setup Flag N° 1 Trigger 1 : Occurence : Once Conditions : Unit inside zone, Flag 1 is true Actions : Flag 1 off, Flag 2 on Trigger 2 : Occurence : Once Conditions : Unit inside zone, Flag 2 is true Actions : Flag 2 off, Flag 3 on Win 10 | i7 8700 Coffee Lake OC @ 4.9Ghz | 32Go Ram | 1080Ti | DCS on SSD | Thrustmaster HOTAS Warthog | Saitek Rudder | TrackIr 5 Pro
Jona33 Posted November 26, 2012 Posted November 26, 2012 Flag 1 is being switched on the moment you enter. You are still in the trigger zone presumably so flag 2 is true and you're in the zone, hence flag 2 is switched off and flag three is switched on. You're still in the zone so the next message plays etc... Always remember. I don't have a clue what I'm doing
Leysard Posted November 26, 2012 Author Posted November 26, 2012 Ok, so i'll unset and set the next flag when getting out of the zone. Thanks for fast reply Win 10 | i7 8700 Coffee Lake OC @ 4.9Ghz | 32Go Ram | 1080Ti | DCS on SSD | Thrustmaster HOTAS Warthog | Saitek Rudder | TrackIr 5 Pro
Leysard Posted November 27, 2012 Author Posted November 27, 2012 In fact, that still don't work and I don't find the right way to do it. Tried with flag check coming into zone and flag of and new flag coming out, didn't work.:( My latest idea is in the sample here attached. Would be nice if someone could help me.Sample.miz Win 10 | i7 8700 Coffee Lake OC @ 4.9Ghz | 32Go Ram | 1080Ti | DCS on SSD | Thrustmaster HOTAS Warthog | Saitek Rudder | TrackIr 5 Pro
Grimes Posted November 27, 2012 Posted November 27, 2012 I attached a modified version of what it looks like you were trying to build. The reason why your setup didn't work was because each time the aircraft was outside of the zone, you iterated to the next set of flags, which made each subsequent condition for being outside the zone true.Sample2.miz The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts