Hi Desperado. The way you made this tutorial is great. I could not get this to work, and then I realized that I was putting the code in the wrong box. LOL It works perfectly! Thanks. :)
Fantastic workaround man! I changed it a tiny bit to make it so only a certain player can open it aka p1. this addaction ["Inventory", {_Object setpos position (_this select 1); (_this select 1) action ["Gear", _Object]},[], 6, true, true, "", "(_this distance _target)
I have a question that is a bit off topic from this but has something to do with the command used in the video. Using the "This" command type, is it possible to give a specific weapon infinite ammunition or higher capacity magazines? Thank you in advance.
*this addeventhandler ["fired", {(_this select 0) setvehicleammo 1}]* Put that in the init of the unit you wish to give unlimited ammo. Actually what it does is everytime the AI or player fires it fills the clip to max again. *source: **forums.bohemia.net/forums/topic/77355-give-ai-unlimited-ammo/* Now for extended mags, it ain't easy but it is possible... *forums.bohemia.net/forums/topic/198360-need-some-help-on-how-to-modify-weapon-damagemagazines/* Never actually searched good, but maybe you can find a mod in the workshop with extended mags?!?
There are two ways of how to do this... 1) We got the HEMTT Ammo ingame, if you place those vehicles, drive up to them ingame and look at them u get the option to rearm. 2) We could make a (mini) script. trigger 1: activation any player present, onAct: hint "Vehicle service started... Please put your engine off...";vehicle (thislist select 0) engineOn false; Trigger 2: same conditions, but now we use a timeout, and put that on 10secs, onAct: vehicle (thislist select 0) setVehicleAmmo 1; vehicle (thislist select 0) setFuel 1; vehicle (thislist select 0) setDamage 0;hint "Vehicle service complete."
Hi Desperado.
The way you made this tutorial is great. I could not get this to work, and then I realized that I was putting the code in the wrong box. LOL
It works perfectly! Thanks. :)
If you download the demo mission and have a look in their.
If you skip 1 step the code won't work, that is the thing.
Haha, sh*t happens :)
Glad it works now for you to.
Fantastic workaround man! I changed it a tiny bit to make it so only a certain player can open it aka p1. this addaction ["Inventory",
{_Object setpos position (_this select 1);
(_this select 1) action ["Gear", _Object]},[], 6, true, true, "", "(_this distance _target)
Thanks for it! Very useful! :)
Great video, thank you!
I have a question that is a bit off topic from this but has something to do with the command used in the video. Using the "This" command type, is it possible to give a specific weapon infinite ammunition or higher capacity magazines? Thank you in advance.
*this addeventhandler ["fired", {(_this select 0) setvehicleammo 1}]*
Put that in the init of the unit you wish to give unlimited ammo.
Actually what it does is everytime the AI or player fires it fills the clip to max again.
*source: **forums.bohemia.net/forums/topic/77355-give-ai-unlimited-ammo/*
Now for extended mags, it ain't easy but it is possible...
*forums.bohemia.net/forums/topic/198360-need-some-help-on-how-to-modify-weapon-damagemagazines/*
Never actually searched good, but maybe you can find a mod in the workshop with extended mags?!?
Can you turn the ammo box into vehicle ammo? Where a vehicle can rearmed with it?
There are two ways of how to do this...
1) We got the HEMTT Ammo ingame, if you place those vehicles, drive up to them ingame and look at them u get the option to rearm.
2) We could make a (mini) script. trigger 1: activation any player present, onAct: hint "Vehicle service started... Please put your engine off...";vehicle (thislist select 0) engineOn false;
Trigger 2: same conditions, but now we use a timeout, and put that on 10secs,
onAct: vehicle (thislist select 0) setVehicleAmmo 1; vehicle (thislist select 0) setFuel 1; vehicle (thislist select 0) setDamage 0;hint "Vehicle service complete."
DO you know how to put chest into vehicle from editor ?
community.bistudio.com/wiki/addWeaponCargo ?
Will this work on multiplayer server?
Yes
this addaction ["Inventory", {_Object setpos position (_this select 1);
(_this select 1) action ["Gear", _Object]},[], 6, true, true, "", "(_this distance _target)