Jump to content
Sign in to follow this  
gopgop

Whats wrong with my script?

Recommended Posts

private ["_rtarget"];

_rtarget = [t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13];

forEach _rtarget do {

_rtarget animate["terc", 0];

};

hint "CQB Training: Targets Reset";

all im trying to do is reset the targets...

im using addAction to a flagpole and calling this script in it...

this addAction ["Reset Targets","resetTarget.sqf"];

Share this post


Link to post
Share on other sites

private ["_rtarget"];

_rtarget = [t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13];

{

_x animate["terc", 0];

} forEach _rtarget;

hint "CQB Training: Targets Reset";

More here: forEach

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  

×