Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
_mybuilding setPos [ (getPos _mymarker select 0) + 5, (getPos _mymarker select 1) + 5, 0];
this should move _mybuilding to the marker position and move it 5 meters away from the marker in both X and Y axis.
I mean as an example if you design a base in the editor the position of each building is relativ to the map.
I want to port this layout (base) to a script which let the base spawn at random location where a Marker has been placed on the map.
that's what i said just build you base attaching all objects around one main object (a marker or whatever) then u can move that "one" object and it will move the hole base wherever you want as it's all attached to a main frame. if not you'd have to setpos of each object of your base relatively to the desired marker i guess (which is harder to get imo).
Place a player at an Airport or nice flat ground.
Place a Zeus Module
Preview mission and press Y. Build base or spawn a pre configured one from groups > Empty.
Once you are happy, press Y, stand in the middle of the base, press esc and type [getPos player, 50] call BIS_fnc_objectsGrabber; and hit LOCAL EXEC.
The rest is explained here. https://forums.bistudio.com/topic/163625-dynamic-object-compositions-doc/?p=2575685
You can call the whole base to a marker with
0 = [positionWhereYouWantToSpawnYourComposition, azimutOfYourComposition, call (compile (preprocessFileLineNumbers "yourComposition.sqf"))] call BIS_fnc_ObjectsMapper;
Amazing that what I was looking for, thank you very much dude!