Page 1 of 2 12 LastLast
Results 1 to 10 of 12

  Click here to go to the first Developer post in this thread.  

Thread: Detect what weapons a unit is carrying

  1. #1
    Master Gunnery Sergeant
    Join Date
    Jan 7 2002
    Location
    New Zealand
    Posts
    1,088
    Ok as the title says, I'm looking for a script that detects what weapons and ammo a unit is carrying. I know how to remove all weapons but I dont want to remove them all just the current (primary) and secondary.
    Thanks

    edit.. stupid keyboard makes typos all the time



    We are now fully operational - that is, we are in a constant flap instead of having isolated confused situations.

    D.I.L.L.I.G.A.F.: Rebel Without a Pause

  2.   Click here to go to the next Developer post in this thread.   #2
    Hmm

    unit removeweapon primaryweapon unit
    unit removeweapon secondaryweapon unit


    weapons unit
    gets you a list of all weapons

    magazines unit
    gets you a list of all mags
    "Peace can not be kept by force. It can only be achieved by understanding." Albert Einstein

    Please report Arma 3 bugs in the Bug Tracker

  3. #3
    Master Gunnery Sergeant
    Join Date
    Jan 7 2002
    Location
    New Zealand
    Posts
    1,088
    Author of the Thread
    Thanks bn880

  4. #4

    Thumbs up

    Hmm, sounds like something interesting on the horizon, eh Klink?

  5. #5
    Master Gunnery Sergeant
    Join Date
    Jan 7 2002
    Location
    New Zealand
    Posts
    1,088
    Author of the Thread
    lol Yep mixing pot being stirred bigtime at the moment

  6. #6
    Master Gunnery Sergeant
    Join Date
    Jan 7 2002
    Location
    New Zealand
    Posts
    1,088
    Author of the Thread
    Dunno if this will get noticed again, but I got the Primary and secondary weapons sorted, but having problems with the pistol. Can anybody please tell me what slot the pistol fits into. I can addweapon "MyPistol" no problem, but when I want to detect if he is carrying it I'm having problems.
    Thanks

  7.   Click here to go to the next Developer post in this thread.   #7
    That is a problem... there was some workaround to finding pistol, notsure if it was reliable, hmmm


    you can play with the weapons array and subtract primary and secondary, but... nvgoggles and binocular will complicate issues. especially since there might be different addons for NVgoggles and binocs out?

    EDIT: I believe that was the workaround




  8. #8
    Master Gunnery Sergeant
    Join Date
    Jan 7 2002
    Location
    New Zealand
    Posts
    1,088
    Author of the Thread
    Hmm. That is a problem. What I am trying to do is determine if a unit has a handgun of a praticular type so that he/she can take ammo for that handgun.

  9.   This is the last Developer post in this thread.   #9
    Of a particular type? Well if you know all the handgun types ahead of time then it's easy right, just check if that type of weapon is in the weapons _unit array.

    I doubt that's what you want....

  10. #10
    Master Gunnery Sergeant
    Join Date
    Jan 7 2002
    Location
    New Zealand
    Posts
    1,088
    Author of the Thread
    I need to be able to check if the unit has a handgun, discard it, then pick up the one out of the gun rack, then pick up the ammo for it. the primary and secondary slots are no problem but the handgun is a pita

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •