Forum Jump :

Author Message


Posts: 154
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age: 48
In-game name: Tay-uk

 
#1 Posted at 2012-10-21 12:36        
     
I am using norrins revive script and in it is this part where when using a mobile respawn vehicle it creates an camo net and an ammo box next to the vehicle.
_vcl 				= _this select 0;
_pos_vcl 			= getPos _vcl;
_dir_vcl 			= getDir _vcl;
_camoNet			= "Land_CamoNetB_NATO_EP1";

switch (playerSide) do 
{
	case west: {"USBasicAmmunitionBox_EP1" createVehicle [_pos_vcl select 0, (_pos_vcl select 1) - 2, (_pos_vcl select 2) - 4];};
	case east: {"TKBasicAmmunitionBox_EP1" createVehicle [_pos_vcl select 0, (_pos_vcl select 1) - 2, (_pos_vcl select 2) - 4];};
	case resistance: {"GuerillaCacheBox_EP1" createVehicle [_pos_vcl select 0, (_pos_vcl select 1) - 2, (_pos_vcl select 2) - 4];};
};

_vcl setFuel 0;
_camo =  _camoNet createVehicle _pos_vcl;
_camo setDir (_dir_vcl + 90);
_camo setPos [(_pos_vcl select 0) + (sqrt (4) * cos (155 - _dir_vcl)), (_pos_vcl select 1) + (sqrt (4) * sin (155 - _dir_vcl)) , 0];

NORRN_camo_net = true;
publicVariable "NORRN_camo_net";
_vcl removeAction NORRN_l_spawn_act;

if (true) exitWith {}; 
What I could do with knowing is how to once the ammobox has been created have a custom ammo crate script appllied to it.
Any help would be appreciated.
EDIT:- Solved by [EVO]_Dan
Ironfront post for same question

This post was edited by Tay-uk (2012-10-24 19:39, ago)