Code:_l25 = primaryWeapon player; _l31 = secondaryWeapon player; player setAmmo[_l25, 999]; player setAmmo[_l31, 999]; (vehicle player) setVehicleAmmo 1; (vehicle player) setVehicleAmmo 1; sleep 0.01;
Ever since the day I started scripting in SQF.... Unlimited Ammo has ALWAYS been a bit*h to me...
Anyway here is what I've got:
So... the hint shows but unlimited ammo doesnt work... When I execute it, It only fills up my mags from 15/30 to 30/30.UNLIM_A_M_M_O = {
hint 'Unlimited Ammo Activated';
(vehicle player) setVehicleAmmo 1;
};
Code:_l25 = primaryWeapon player; _l31 = secondaryWeapon player; player setAmmo[_l25, 999]; player setAmmo[_l31, 999]; (vehicle player) setVehicleAmmo 1; (vehicle player) setVehicleAmmo 1; sleep 0.01;
You are both wrong
jesus please READ THE FUCKING WIKI
https://community.bistudio.com/wiki/setVehicleAmmo
-- Sets how much ammunition (compared to a full state defined by the vehicle type) the vehicle has. The value ranges from 0 to 1.
this means that setVehicleAmmo needs to be looped in order for it to work!
https://community.bistudio.com/wiki/setAmmo
I found this on the wiki!!!
SetAmmo sets max ammo to weapon not 9999 bullets!!!Code:player setAmmo [primaryWeapon player, 1000000]; //full mag with default ammo count
so do
Code:while{true} do {vehicle player setVehicleAmmo 1;sleep 0.1;};
It's not ugly for me
Lystic pretty much answered the question.
Solved.
/Closed
MPGH Staff History:
Minion: 02-12-2013 - 6-28-2013
Former Staff: 6-28-2013 - 7-14-2014
Minion: 7-14-2014 - 1-3-2015
Minion+: 1-3-2015 - 6-1-2015
Moderator: 6-1-2015 - 10-2-2016
Global Moderator: 10-2-2016 - Current
Current Sections:
DayZ Mod & Standalone Hacks & Cheats
BattleOn Games Hacks, Cheats & Trainers
Minecraft Hacks
Other Semi-Popular First Person Shooter Hacks
Blackshot Hacks & Cheats
Need For Speed World Hacks
Other First Person Shooter Hacks
CounterStrike: Global Offensive Hacks
Garry's Mod Hacks & Cheats
Donating:
If you want to donate money to me I take Bitcoin & Paypal, PM me for either of these if you're interested and thanks.
Top Donators: (Awesome People)
FanticSteal $75.00
smurf_master $58.00 <- Best DayZ Gear Seller
Fujiyama $25.00
[MPGH]Black $10.00
[MPGH]Hova $10.00
xJudgez $4.54
[MPGH]Normen's Sheep $3.50
eminemlover $1.50
Brony?
https://www.mpgh.net/forum/groups/1728-mpgh-bronies.html