OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: dematti on 31 Aug 2007, 18:58:48
-
hi,
We all understand the function of placement radius.
But how can i place 2objects or more in a radius of lets say 1000m but still keep the 2objects close to each other?
The goal is randomly placing an enemy camp on a very large map. the radius i need to set is about 20000m.
Thanx
-
u place 1 of em nd give it the placement radius thingy...
in its init u use da setpos comand like dat
(init of randomly placed unit) : 2ndobjname setpos (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=s#setPos) (this modeltoworld (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=m#modelToWorld) [0,0,0])
u can change da model 2 world thingy 2 suit ur needs :D
LCD OUT
P.S
WELCOME 2 OFPEC M8
-
thanx for fast reply
Problem solved
see ya
edit: the island is hilly and the objects are under and above ground
is there a way to set them on the ground without changing the height in the init?
-
u got tents nd stuff like dat ? kinda hard when it comes 2 hily terain...
try addin in da init a setpos command dat leavs it inplace but sets da high 2 0... not sure itll work tho...
LCD OUT