cScripts
cScripts copied to clipboard
Have escapeWreck function move player out on a random side of the aircraft.
You can also adda random side here if you want ^^
[_target, selectRandom [true,false]] call FUNC(doGetOutHeloSide);
Originally posted by @AndreasBrostrom in https://github.com/7Cav/cScripts/pull/950#discussion_r1275369762
@AndreasBrostrom I'm going to sit down and do this now. I'll use the bounding box to decide the location, possibly randomly. Or I will just do a force move out so that it uses the model memory point to set the dismount location.
Closed on accident
Here is a snippet that give you a random position on the edge of a ellipse marker. You can just write away the marker part and replace it with the model size and what not.
_mark = "BASE";
_phi = random(360);
_x = cos(_phi);
_y = sin(_phi);
_posVector = [_x * ((markerSize _mark) select 0), _y * ((markerSize _mark) select 1), 0];
_newPos = (markerPos _mark) vectorAdd _posVector;