Jump to content

Recommended Posts

Alright dudes;

I'm looking to try to mod up the current targets that are out there to rise on command.... Sorta like you have a control point and you're able to have either a row or individual targets rise up on control at various ranges... I recently just got into coding, which seems pretty straight forward... Just not really sure how to go about something like the targets... Or if it's even entirely possible? Or something like, shoot them they stay down... Then you have a control to reset them.

Thanks.

Share this post


Link to post
Share on other sites

Place down your "Popup Target (Soldier)" objects how you want them.

Place a GameLogic in the middle of them with this init:

nopop = true; laneTargets = nearestObjects [this, ["TargetBase"], 200];

Make sure the 200 is enough of a radius to cover all your targets.

Then put down two triggers. First Radio Alpha Repeatedly with this onAct:

SST_resetpop = true; publicVariable "SST_resetpop";

Then put down a second trigger, NONE, NONE, REPEATEDLY with this condition:

SST_resetpop

and this onAct:

{_x setDamage 0; _x animate["terc", 0]} forEach laneTargets; SST_resetpop = false; publicVariable "SST_resetpop";

Shoot your targets and 0-0-1 to pop them back up.

  • Like 1

Share this post


Link to post
Share on other sites
Place down your "Popup Target (Soldier)" objects how you want them.

Place a GameLogic in the middle of them with this init:

nopop = true; laneTargets = nearestObjects [this, ["TargetBase"], 200];

Make sure the 200 is enough of a radius to cover all your targets.

Then put down two triggers. First Radio Alpha Repeatedly with this onAct:

SST_resetpop = true; publicVariable "SST_resetpop";

Then put down a second trigger, NONE, NONE, REPEATEDLY with this condition:

SST_resetpop

and this onAct:

{_x setDamage 0; _x animate["terc", 0]} forEach laneTargets; SST_resetpop = false; publicVariable "SST_resetpop";

Shoot your targets and 0-0-1 to pop them back up.

Hi, i am trying to make a training camp, for my group, and I would like to make a zone when targets hits pop auto (like vanilla) and a zone that they only pop when we finish the exercice. Can you help me?

Share this post


Link to post
Share on other sites

if i wanted to have calls for different kill houses to pop up targets could i radio instead of to alpha radio bravo?

Share this post


Link to post
Share on other sites
On 05/10/2016 at 0:42 AM, jacob1 said:

if i wanted to have calls for different kill houses to pop up targets could i radio instead of to alpha radio bravo?

Yeah.

Share this post


Link to post
Share on other sites

@kylania Your script works fantastically in single player.. but when I put it on a dedicated server, the targets wont stay down.. Any solutions to that?

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

×