Hi it's me again ;D Sorry to be a pain. But This one is kicking my (soft lower region).
Hope I can explain this better. I made a very crude script that is activated by a radio. This script creates four game logics in specific areas using my player as a reference point. It basically makes a square. The next part of this script tells my team to go to these areas (To simulate a patrol) This script continues to loop itself forever. What I want is to be able to stop this script alltogether with another script using another radio call.
I want to be able to stop the patrol at anytime. then if I want I can move my team to a new location and activate the patrol script one again and do this over and over.
See in my mission You have to secure two towns one right after the other. But first you have to "patrol" it in case of any other bad guys. when it is cleared you "stop patrol" and move to town 2 to once again secure and once again I want to be able to activate the "patrol.sqs" again.
Here is my script. (I am just learning this so I know it is perhaps longer and uglier than need be) My goal in learning to script is I want to understand each line and not just copy and paste. So take a look and please any help is welcomed.
;------------------------------
gl ="logic" createvehicle getPos a; gl setpos [(getPos a select 0) - (0), (getPos a select 1) + (35), 0]
gl2 ="logic" createvehicle getPos a; gl2 setpos [(getPos a select 0) + (30), (getPos a select 1) + (35), 0]
gl3 ="logic" createvehicle getPos a; gl3 setpos [(getPos a select 0) + (30), (getPos a select 1) - (35), 0]
gl4 ="logic" createvehicle getPos a; gl4 setpos [(getPos a select 0) - (0), (getPos a select 1) - (35), 0]
~3
a setspeedmode "safe"
b setspeedmode "limited"
~1
b setbehaviour "safe"
b setspeedmode "limited"
~1
c setbehaviour "safe"
~7
# loop
b domove getpos gl; b setspeedmode "limited"
~1
c domove getpos gl2;
~30
b domove getpos gl3;
~3
c domove getpos gl;
~30
b domove getpos gl2;
~5
c domove getpos gl4;
~40
hint "This patrol will start up again in 5 sec"
~5
goto "loop"
;--------------------------------
If I can get this test one to work then I can make a larger and better on.
Thank you for your patience and your help ;D