guttall Posted March 6, 2015 Report Share Posted March 6, 2015 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. Link to comment Share on other sites More sharing options...
0 shurix Posted March 7, 2015 Report Share Posted March 7, 2015 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. nedfox 1 Link to comment Share on other sites More sharing options...
0 guttall Posted March 29, 2015 Author Report Share Posted March 29, 2015 Hey, many thanks for your reply!, I just checked it today..., that script should be added at server side pbo or at mission pbo ? Thanks again! Link to comment Share on other sites More sharing options...
Question
guttall
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.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now