Jump to content
  • 0

How to remove ammo from vehicles at server restarts ?


guttall

Question

2 answers to this question

Recommended Posts

  • 0

Hi guys,

 

Any ideia how to remove vehicles ammo from vehicles spawned from from @epochhive/epochconfig.hpp ??

 

E.g:  Remove LMG Minigun ammo from a GhostHawk.

 

It is possible to check every vehicle on server restart.

You would need to wait for server to finish spawning vehicles and filling storage

waitUntil {!isNil "EPOCH_StorageSlotsCount"};

and then you might want to do something like this

{
	_veh = _x;
	if ((typeOf _x) == "GhostHawk") then {
	    //remove MiniGun ammo 
	};
} forEach (vehicles);

There is no way to identify a freshly spawned vehicle at this time. With version 0.3 each spawned vehicle will contain a Jack tool (not sure about choppers though). This would be a item for me to look for in vehicle's inventory and do some actions on that vehicle. Until Epoch script adds a new variable or another attribute to a fresh spawned vehicle, there is probably no other way.

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

×
×
  • Create New...