Taproot Posted May 28, 2013 Posted May 28, 2013 Hi. I posted this in bugs/problems, but I you might help me with a workaround. The bug: I made some triggers that doesnt seem to work as they should. The sequence: 1: When grp is alive set flag 1 2: When flag is more (10) play sound A 3: When hit set flag 2, play sound B 4: When grp is in zone (spawnpoint) and flag 2 is true play sound C Well. This is happening, however. If I enter the aircraft in MP and then f ex go back to spectators, then reenter the aircraft, sequence 4 starts although I never got hit. So flag turns on if I leave the aircraft in any way. I suspect this is not working as intended. But I was hoping that you could help me find anoter "Unit damaged" trigger.. Or something.. >.< Start the brainstorming :) [sIGPIC][/sIGPIC]
ENO Posted May 28, 2013 Posted May 28, 2013 If you leave without being shot down I think your aircraft is "dead" so flag two would be true. You might want to add a unit in zone condition closer to where they may get shot down. Once that aircraft enters the zone then you could set another flag which would need to be true to get sound c There is a useful mist script that I used where a flag is set when a unit is hit by another unit, whether by unit name, group, coalition- I could dig it up for you as it would solve the issue more directly. "ENO" Type in anger and you will make the greatest post you will ever regret. "Sweetest's" Military Aviation Art
Wrecking Crew Posted May 29, 2013 Posted May 29, 2013 What exactly is #3 - is that a Unit Damaged or a Group Dead? If you exit to Spectators, does Flag 1 stay true? Not sure about this, but if you exit to Spectators does that set a Group is Dead condition? (Which could be the same as #3.)\ Are you using Once type events, or Switched Condition? Since a Client can come in and out, I think that previous flags set by the Client on previous 'sessions' will stay set, since it is the same Group/unit. Questions, questions! :-) Check this out - https://docs.google.com/file/d/0BwHk38uryutrdE5IWjM2TU4wb0U/edit?usp=sharing WC Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.
Grimes Posted May 29, 2013 Posted May 29, 2013 Add a Unit is Alive condition along with the damaged condition. It seems that the transition from group alive to group dead counts as damage. Switching to spectator counts the aircraft as "dead" for the triggers. 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