Jump to content
Sign in to follow this  
ios

Script line doesn't Work

Recommended Posts

i have this line in a script called from Server :

{if (((group _x) != Yankee) AND ((group _x) != FoxHound) AND (_x distance Base > 400)) then {_x setVehicleInit "search = this addaction [""Examine the corpse"",""Search\Search.sqf""]"}} foreach allUnits;
sleep 1;
processInitCommands;

i can't find why it's not working ;s and -showscripterror don't tell me anything :o

Any Help is Welcome !

Share this post


Link to post
Share on other sites

well i tested it and it works, i placed down 2 groups called them Yankee and FoxHound and a ammo crate 1km away named Base.

All actions work fine.

Either Base is a marker and you need to change it to getMarkerPos "Base"

or you are in one of the groups.

or you meant that distance to Base should be below 400 and not above 400 as it is now.

When i tried without defining Yankee and FoxHound groups i got error with showscript errors, but your line works if all is set up correctly.

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  

×