• 0
lucy2990

Custom script - predetermined positions

Question

Hello guys,

I so need to customize this script:

I would to adapt this script in my server and  I  need to set the random spawn points in fixed positions choices from me,

It's posible ? 

where I need to change random spawn mission in predetermined positions ? i use Altis map.

I'm not a scripter .... just copy and paste ...

Thank you in advance for noble souls who will help me <3.

Share this post


Link to post
Share on other sites

10 answers to this question

  • 1

Posted (edited)

in fn_crashdrop.sqf change:

Spoiler

	//Get data
	_cord1 = [_mapcenter, 1, _centerrad, 3, 0, 600, 0] call BIS_fnc_findSafePos;
	sleep 0.5;
	_cord2 = [_mapcenter, 1, _centerrad, 3, 0, 600, 0] call BIS_fnc_findSafePos;
	sleep 0.5;
	_cord3 = [_mapcenter, 1, _centerrad, 3, 0, 600, 0] call BIS_fnc_findSafePos;
	sleep 0.5;
	_cord4 = [_mapcenter, 1, _centerrad, 3, 0, 600, 0] call BIS_fnc_findSafePos;
	sleep 0.5;
	_cord5 = [_mapcenter, 1, _centerrad, 3, 0, 600, 0] call BIS_fnc_findSafePos;

 

to:

Spoiler

	//Preset locations config  **make sure all coords are different
	_rand1 = 
	[
		[4200.43,10851.5,0.001],
		[4395.22,10516.8,0.001],
		[4640.67,10095.6,0.001]
	];
	_rand2 = 
	[
		[4200.43,10851.5,0.001],
		[4395.22,10516.8,0.001],
		[4640.67,10095.6,0.001]
	];
	_rand3 = 
	[
		[4200.43,10851.5,0.001],
		[4395.22,10516.8,0.001],
		[4640.67,10095.6,0.001]
	];
	_rand4 = 
	[
		[4200.43,10851.5,0.001],
		[4395.22,10516.8,0.001],
		[4640.67,10095.6,0.001]
	];
	_rand5 = 
	[
		[4200.43,10851.5,0.001],
		[4395.22,10516.8,0.001],
		[4640.67,10095.6,0.001]
	];
	//Preset End
	
	//Get data
	_cord1 = _rand1 call BIS_fnc_selectRandom;
	sleep 0.5;
	_cord2 = _rand2 call BIS_fnc_selectRandom;
	sleep 0.5;
	_cord3 = _rand3 call BIS_fnc_selectRandom; 
	sleep 0.5;
	_cord4 = _rand4 call BIS_fnc_selectRandom; 
	sleep 0.5;
	_cord5 = _rand5 call BIS_fnc_selectRandom;

 

This will allow you to configure 15 predetermined locations. Adding more is as easy as just adding more coords into the _rand arrays.

Edited by oSoDirty
2 people like this

Share this post


Link to post
Share on other sites
Advertisement
  • 0

Thanx OsoDirty <3

I try now.

Inevitably generates 15 missions or can I limit to 5 if i need ?

Share this post


Link to post
Share on other sites
  • 0

Posted (edited)

It's going to pick 5 from the 15 you provide. 1 from each of the 5 _rand arrays.

Edited by oSoDirty

Share this post


Link to post
Share on other sites
  • 0

Thanx again Oso <3

I can sett only helicrash and eliminate dropcrash ?

Share this post


Link to post
Share on other sites
  • 0

I'm sure you can, but I don't know exactly how. Heading to work but I can have a look later.

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

I'll never understand how people think General Discussion = Support. Moving topic

Share this post


Link to post
Share on other sites
  • 0

After having a look, it seems like the heli that does the drop is also the heli that crashes. So from what I can tell they rely on each other to work properly. I'm not the best coder by far, so I could be very wrong. Maybe someone else could shed some light on this.

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

thanx thanx thanx for help Oso <3 

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.