OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: crisbal on 19 Jan 2012, 14:02:54
-
What should I do to make a whole group of soldiers be moved to the position of a marker using the setpos command?
example: bravo = group this (In the init field of the team leader, named bravo_1)
"_x setpos (getmarkerpos "marker_1")" foreach units bravo (doesn't work)
"_x setpos (getmarkerpos "marker_1") foreach units group bravo_1 (the name of team leader bravo group) (doesn't work)
bravo setpos (getmarkerpos "marker_1") (doesn't work)
bravo_1 (name of team leader of bravo team) setpos (getmarkerpos "marker_1) (doesn't work if bravo_1 is killed)...
Some help please >:(
-
Try this:
"_x setPos getMarkerPos ""marker_1""" forEach units bravo
-
{_x setpos (getmarkerpos "markername")} foreach units groupname
This is the command I use in some of my unit spawning scripts in my missions.
-
Hey Thanxs , :clap: works perfectly!