Jump to content
Sign in to follow this  
BelgarionNL

command that gives all the spawned objects the same height coordinate as the HQ! help

Recommended Posts

this is a piece of code that spawns part of a mobile base:

_pos = startLocation modelToWorld [13,-9,0];
_pos set [2,5];
if (getMarkerPos "USFLAG" distance (vehicleServicePoint modelToWorld [0,0,0]) > 50) then {
	vehicleServicePoint setPosATL _pos;
	vehicleServicePoint setDir (getDir startLocation - 180);
	vehicleServicePoint setCaptive true;

_pos set [2,5]; is now set at height 5 so it works!

the reason for this is that i want to create a semi-mobile FOB! and I need all the objects at the same height for that!

Edited by BelgarionNL

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×