spear

Add Vehicle Init to scipt

5 posts in this topic

How to put this

"this addMagazine "38Rnd_80mm_rockets";this addWeapon "rockets_Skyfire";"

 into a script and make it run for every "B_Heli_Light_01_stripped_F" instead of adding it to the vehicles init ?

Edited by spear

Share this post


Link to post
Share on other sites
Advertisement

Assuming you want this run on every vehicle that exists on your server of that class name? You could run this when your server initializes. Might work for you.

_vehicleArray = allMissionObjects "B_Heli_Light_01_stripped_F";

{
	_x addMagazine "38Rnd_80mm_rockets";
	_x addWeapon "rockets_Skyfire";
	
} forEach _vehicleArray;

 

1 person likes this

Share this post


Link to post
Share on other sites

Posted (edited)

3 hours ago, John said:

Assuming you want this run on every vehicle that exists on your server of that class name? You could run this when your server initializes. Might work for you.


_vehicleArray = allMissionObjects "B_Heli_Light_01_stripped_F";

{
	_x addMagazine "38Rnd_80mm_rockets";
	_x addWeapon "rockets_Skyfire";
	
} forEach _vehicleArray;

 

thanks will try it, would this also working with

_x removeMagazinesTurret ["20Rnd_120mmSABOT_M1A2",[0]] ?

(would like to remove the Xian ammo)

regards

Edited by .Doppelpoint

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.