Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have escapeWreck function move player out on a random side of the aircraft. #971

Open
pool011 opened this issue Jul 30, 2023 · 3 comments
Open
Assignees
Labels
T-Enhancement Type: General enhancement, improvments, change or addition to scripts
Milestone

Comments

@pool011
Copy link
Collaborator

pool011 commented Jul 30, 2023

          You can also adda random side here if you want ^^

[_target, selectRandom [true,false]] call FUNC(doGetOutHeloSide);

Originally posted by @AndreasBrostrom in #950 (comment)

@pool011 pool011 self-assigned this Jul 30, 2023
@pool011 pool011 added this to the future milestone Jul 30, 2023
@pool011 pool011 added the T-Enhancement Type: General enhancement, improvments, change or addition to scripts label Jul 30, 2023
@AndreasBrostrom AndreasBrostrom modified the milestones: future, backlog Nov 30, 2023
@pool011
Copy link
Collaborator Author

pool011 commented Dec 7, 2023

@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.

@pool011 pool011 closed this as completed Dec 7, 2023
@pool011 pool011 reopened this Dec 7, 2023
@pool011
Copy link
Collaborator Author

pool011 commented Dec 7, 2023

Closed on accident

@pool011 pool011 modified the milestones: backlog, 4.5.8, 4.5.9 Dec 7, 2023
@AndreasBrostrom
Copy link
Member

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;

@pool011 pool011 modified the milestones: 4.5.9, backlog Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Enhancement Type: General enhancement, improvments, change or addition to scripts
Projects
None yet
Development

No branches or pull requests

2 participants