where would i define the group?
I would like to know this too, I am making a mission that involves some spawning of enemies. I would like each soldier to spawn into a new group, and run hunter.sqs (a script that make him go hunt down the player)
_point is a gamelogic (the spawn point)
_group should be a new group every loop
_interval is the time between each spawning
#spawn
_group = group
???"soldierE" createUnit [getpos _point,_group,"[this] exec "hunter.sqs"",0.5,"PRIVATE"]
~_interval
goto "spawn"
Apart from the problem with groups, it is also a problem to run hunter.sqs. I get a error message because of the qoutes around the filename, so I wrote this instead:
"soldierE" createUnit [getpos _point,_group,"[this] exec hunter.sqs",0.5,"PRIVATE"]
Now, there's no error message, but it still does'nt work, nothing happens, hunter.sqs just does'nt execute...
Can anyone help?