Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×

device_zero

Member
  • Content Count

    4
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About device_zero

  • Rank
    Rookie
  1. device_zero

    Multiplayer Ammobox (bug?)

    Never knew that it executes every time a player joins, this was causing the problem like you mentioned. I solved it with a simple if statement in the init to only run it on the server once: if(isServer) then { clearMagazineCargoGlobal this; this addMagazineCargoGlobal ["30Rnd_45ACP_Mag_SMG_01", 2]; this addMagazineCargoGlobal ["30Rnd_9x21_Mag", 2]; } Thanks for the help everyone!
  2. Hello everyone, I'm experiencing difficulties with custom ammoboxes. I can clear the ammobox without problems and I can also add weapons/ammo with addWeaponCargoGlobal/addMagazineCargoGlobal but sometimes the items within the ammobox seem to bug out for some players on multiplayer. Basically what happens is that some players can not take out some items from the ammobox, even though it is right there. Other players have to take out the items and drop it on the ground for that player to be able to pick it up... so the items are present. Here's a code exerpt from one ammobox which bugged out last match, this code is in the init section: clearMagazineCargoGlobal this; this addMagazineCargoGlobal ["30Rnd_45ACP_Mag_SMG_01", 2]; this addMagazineCargoGlobal ["30Rnd_9x21_Mag", 2]; The items are cleared/added just fine, but sometimes players can not take anything out and it is really puzzling. Anyone have a clue what may be the problem? anyone had any similar issues?
  3. It works as expected, thanks a lot! :D
  4. I would also need some info on how to set the 9P1291M into "Firing Position" with a script, did you ever find out how to do it? Making the AI launch the nuke itself is pretty simple once you have set the 9P1291M into "Firing position", all you need to do is "scud1 doTarget target1" and "scud1 doFire target1" and the AI will aim and fire the nuke at the target. Do note that the AI will not launch the nuke if the 9P1291M is not facing the target (can't fire on a target behind it) or the target is too close. So to make a script that can fire at any target on the map one would need to: turn the 9P1291M towards the target (if the vehicle isn't already facing the target). set the 9P1291M into the "Firing Position". and then use doTarget and doFire to launch the nuke. Any info on how to set the 9P1291M into the "Firing Position" would be appreciated.
×