Jump to content
  • 0

How to make this script work


Warburgg

Question

	if(_complete) then {
		[_crate,10,10,[100,crate_items_president],10,10] call dynamic_crate;
	};

How to make the above script catch only the president's loot line?

	if(_complete) then {
		[_crate,crate_items_president] call dynamic_crate;
	};

Is that correct? When I do it seems that the mission does not start.

Sorry for my english I'm using google translator.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

no what you did there broke the crate spawn.

Basically this is what it means...

//Weapons, tools, items, pistols, backpacks

[_crate,10,10,[100,crate_items_president],10,10] call dynamic_crate;

if its just a number, it randomly takes from the "weapons array" here:
https://github.com/f3cuk/WICKED-AI/blob/master/WAI/config.sqf#L100

 

or like you did, you specified 100 items of the array presidents crate here
https://github.com/f3cuk/WICKED-AI/blob/master/WAI/config.sqf#L269

 

what ever you do, keep the array the way it is, if you move stuff around like this
[_crate,[100,crate_items_president],10,10,10,10] call dynamic_crate

^^^^ it wont work

 

 

Link to comment
Share on other sites

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
  • Discord

×
×
  • Create New...