Jump to content
Sign in to follow this  
gavc

Pop-up Targets - when return to up position do this..

Recommended Posts

Hi there,

I'm looking to make a small training section for fire-and-maneuver training. I had the idea that the best way to do this is have a single target at the end of the course, and the two man team would have to make sure the target is suppressed at all times (pop target remains down) while finishing the course.

My thinking around this was that if i could make a target that when it returned to it's up position then waited 1.5 seconds and then sounded a brief alarm. (or hint message) to signify failure.

if Target returns to up position wait 1.5 sec then play failure.wav.

I've searched through all the popup target code i could find but the closest i could find was a Kylania thread here

I'm fumbling in the dark here... but from that thread i mentioned i'm thinking something along these lines???

in gamelogic init i could do something like

nopop = false; laneTargets = nearestObjects [this, ["TargetBase"], 100]; {_x setDamage 1; _x animate["terc", 1]} forEach laneTargets;

then in init.sqf

loop = true;

while {loop} do {
waitUntil {currentUp animationPhase "laneTargets" == 1};
sleep 1.5;
hint "you loose";
};

Any help would be appreciated...

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  

×