Sign in to follow this  
Pba

DMS - vehicles without cargo inside

8 posts in this topic

Hi.

Some RHS and Arma vehicles spawn with stuff inside.

How to make this vehicles inventory empty ?

 

Edited by Pba

Share this post


Link to post
Share on other sites
20 hours ago, Pba said:

Hi.

Some RHS and Arma vehicles spawn with stuff inside.

How to make this vehicles inventory empty ?

 

Quote

    clearMagazineCargoGlobal _vehicle;
    clearWeaponCargoGlobal _vehicle;
    clearItemCargoGlobal _vehicle;

add directly under the vehicle call:

replace _vehicle with whatever variable you are using to spawn the vehicle (sometimes its _veh or _group depending on if its a prize or AI)

  • Like 2

Share this post


Link to post
Share on other sites
Advertisement
On 14. 1. 2018 at 4:19 PM, red_ned said:

add directly under the vehicle call:

replace _vehicle with whatever variable you are using to spawn the vehicle (sometimes its _veh or _group depending on if its a prize or AI)

Please show me where exactly Thank you very much

//create possible vehicle list
_PossibleVehicleClass 		= [
            "CUP_I_Ural_Empty_UN",      
            "CUP_I_Ural_UN",
            "CUP_C_Ural_Civ_03",
            "CUP_C_Ural_Open_Civ_03"
							];
//choose the vehicle
_VehicleClass = selectRandom _PossibleVehicleClass;


if (_difficulty isEqualTo "easy" && {(round (random 1)) isEqualTo 0}) then
{
	_vehicle = [_VehicleClass,[(_pos select 0) -30, (_pos select 1) -30]] call DMS_fnc_SpawnNonPersistentVehicle;
	_msgWIN = ['#0080ff',"Survivors killed everyone and made off with the Ural"];
}
else
{
	_pinCode = (1000 +(round (random 8999)));
	_vehicle = [_VehicleClass,[(_pos select 0) -30, (_pos select 1) -30],_pinCode] call DMS_fnc_SpawnPersistentVehicle;
	_msgWIN = ['#0080ff',format ["Survivors killed everyone and made off with the Ural, entry code %1...",_pinCode]];
};

 

Share this post


Link to post
Share on other sites
11 hours ago, NeverAgain said:

Please show me where exactly Thank you very much


//create possible vehicle list
_PossibleVehicleClass 		= [
            "CUP_I_Ural_Empty_UN",      
            "CUP_I_Ural_UN",
            "CUP_C_Ural_Civ_03",
            "CUP_C_Ural_Open_Civ_03"
							];
//choose the vehicle
_VehicleClass = selectRandom _PossibleVehicleClass;


if (_difficulty isEqualTo "easy" && {(round (random 1)) isEqualTo 0}) then
{
	_vehicle = [_VehicleClass,[(_pos select 0) -30, (_pos select 1) -30]] call DMS_fnc_SpawnNonPersistentVehicle;
	_msgWIN = ['#0080ff',"Survivors killed everyone and made off with the Ural"];
}
else
{
	_pinCode = (1000 +(round (random 8999)));
	_vehicle = [_VehicleClass,[(_pos select 0) -30, (_pos select 1) -30],_pinCode] call DMS_fnc_SpawnPersistentVehicle;
	_msgWIN = ['#0080ff',format ["Survivors killed everyone and made off with the Ural, entry code %1...",_pinCode]];
};

clearWeaponCargoGlobal _vehicle;
clearMagazineCargoGlobal _vehicle;
clearItemCargoGlobal _vehicle;
clearBackpackCargoGlobal _vehicle;

 

 

  • Like 2

Share this post


Link to post
Share on other sites

it is always just after the lines:

call DMS_fnc_SpawnNonPersistentVehicle

or

DMS_fnc_SpawnPersistentVehicle

but you have to make sure on ones which have an "else" to put directly after the 2nd options closing brackets as per the above post

  • Like 1

Share this post


Link to post
Share on other sites
4 hours ago, Bruce Buffer said:

How to make dead ai cleanup. From a clean vanilla install. The mission cleared icon clears, the parts clear, the dead bodies don't.

dead bodies get cleaned when people go away and server cleans up

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  

  • Recently Browsing   0 members

    No registered users viewing this page.