Sign in to follow this  
Followers 0
Stoll

DMS_fnc_CleanUp

3 posts in this topic

Posted (edited)

Hey folks,

I added more than one vehicle to a mission, this way:

Quote

_veh =
[
	[
	[(_pos select 0) +50,(_pos select 1) +5,0]
	],
	_group,
	"assault",
	_difficulty,
	_side,
	_vehClass
] call DMS_fnc_SpawnAIVehicle;

[
	[
	[(_pos select 0) +100,(_pos select 1) +5,0]
	],
	_group,
	"assault",
	_difficulty,
	_side,
	_vehClass
] call DMS_fnc_SpawnAIVehicle;


 

The problem is now, when the mission timed out, only the first vehicle gets deleted.
I tried some things but wasn't able to solve this problem.

Any suggestions?

Cheers

Edited by Stoll

Share this post


Link to post
Share on other sites
2 hours ago, Stoll said:

Hey folks,

I added more than one vehicle to a mission, this way:

The problem is now, when the mission timed out, only the first vehicle gets deleted.
I tried some things but wasn't able to solve this problem.

Any suggestions?

Cheers

do it like this instead

Quote

_veh = [ [ [(_pos select 0) +50,(_pos select 1) +5,0] ], _group, "assault", _difficulty, _side, _vehClass ] call DMS_fnc_SpawnAIVehicle;

then

Quote

_veh2 = [[[(_pos select 0) +100,(_pos select 1) +5,0]],_group,"assault",_difficulty,_side,_vehClass] call DMS_fnc_SpawnAIVehicle;

remember to add to private at the top "_veh2" into the []

then go down and do this

Quote

_missionObjs =
[
 _staticGuns+[_veh]+[_veh2],   
 [_vehicle],       
 [[_crate1,_crate_loot_values1]]  
];

its the "_missionObjs" that gets things included in the clean up

1 person likes this

Share this post


Link to post
Share on other sites

I changed so many missions already....I might have guessed that.
I missed the forest for the trees... :|

That worked. Thanks! :)

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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.