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

FARP/CCP/Airborne: Allow spawn on carriers #91

Open
10Dozen opened this issue Mar 19, 2020 · 0 comments
Open

FARP/CCP/Airborne: Allow spawn on carriers #91

10Dozen opened this issue Mar 19, 2020 · 0 comments
Labels

Comments

@10Dozen
Copy link
Owner

10Dozen commented Mar 19, 2020

Something like this to track that marker position is over deck (_iObj is present and _iPos is above sea level)

fnc_checkIsOnDeck = {
	params ["_mrk"];
	
	private _pos = getMarkerPos _mrk;
	private _objects = lineIntersectsSurfaces [
		[_pos # 0, _pos # 1, 100],
		[_pos # 0, _pos # 1, -15],
		objNull,
		objNull,
		true, 5, "GEOM"
	];
	
	dzn_LOG = [];
	{
		_x params ["_iPos","_surfNormal","_iObj","_pObj"];
		dzn_LOG pushBack _x;
		systemChat str(_x);
	} forEach _objects;

	dzn_LOG
};
@10Dozen 10Dozen added the v2.5 label Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant