Hi again,
heres another prob that i seem to be having. im trying to make a random mission map. i have all the code working sofar, it picks a random mission and then waits for it to be complete before giving the next random one.

to try and save memory, i am trying to use the upsmon template script. heres where the problems occur.

for testing purposes i have added the action to an object.
on action, runs the relevant mission .sqf file. the file is listed below.

Code:
// Creates Marker Over Town For mission
createMarker ["GrpM",[14330,25880,0]];
"GrpM" setMarkerShape "RECTANGLE";
"GrpM" setMarkerSize [50, 50];
_tower = "Land_telek1" createVehicle getMarkerPos "GrpM";
_pos = getMarkerPos "GrpM";
hint format ["grid %1",_pos];
sleep .2;

// First Squad
nul = [1,_pos,1,["GrpM"]] EXECVM "SCRIPTS\UPSMON\MON_SPAWN.SQF";

on execution it creates the marker, places the radio tower there and displays the grid. so i know its working, at this stage it does not create the upsmon template.

if i click on the action again then it does the same again but this time the units are created from the template??? as well as another radio tower and grid message.
any ideas anyone???



also as a side note, is there a way to have a template in the script without having to have the units on the ground?

at the moment i have them all hidden away at a remote area of the map!

thanks in advance