Script designs; how to do x, and y etc?
Posted: 2010-09-01 03:27:58
Well this topic is rather generally written as Script designs; how to do x, and y etc as I was just playing MP mission and was thinking how to do this stuff and just decided that its time to make a topic to keep me reminded later.
- If I have script created helicopter / aircraft (lets just call them helo now) with pilot / crew to fly it, is there some simple way to keep track if this helo is shot down and the crew alive, so then something else could be done like crew rescued or crew would return back to base instead of continuing the "helos" waypoints on foot which would be totally silly?
My first instinct was a killed eventhandler, but no, in my mission there are many situations where the helo is shot down with engines or other parts of it broken, yet it even looks totally intact from a distance. Actually this starts to come a bit nuisance in my mission as the landscape seems unnaturally filled with downed helos here and there after several hours of playing (but that's besides the point, sorry).
- had some other scripting issue in mind while in-game, but of course I forgot about it when I exited to post this, sigh... I'll try to post it later
- If I have script created helicopter / aircraft (lets just call them helo now) with pilot / crew to fly it, is there some simple way to keep track if this helo is shot down and the crew alive, so then something else could be done like crew rescued or crew would return back to base instead of continuing the "helos" waypoints on foot which would be totally silly?
My first instinct was a killed eventhandler, but no, in my mission there are many situations where the helo is shot down with engines or other parts of it broken, yet it even looks totally intact from a distance. Actually this starts to come a bit nuisance in my mission as the landscape seems unnaturally filled with downed helos here and there after several hours of playing (but that's besides the point, sorry).
- had some other scripting issue in mind while in-game, but of course I forgot about it when I exited to post this, sigh... I'll try to post it later