Results 1 to 2 of 2

Thread: Staticweapon gunner absolute position ?

  1. #1

    Staticweapon gunner absolute position ?

    Trying to get a reference to the gunner of a static weapon turns out to be complicated.

    getposASL on the gunner delivers a wrong position.

    Using selectionpos only returns selection positions before the model was animated.
    So if an M2 gunner turns the position is not accurate anymore.
    That would all be no problem if the gun or turret axis parameter could be accessed.
    In cfgvehicle/Mainturret of the Staticweapons there seems to be no config entries concerning the axises.
    Finding config axis selection values would really do the trick, but how?

    Boundingboxcenter does also not help because, the m2model was placed very much
    off-center of the model.

    Eyepos and aimpos do also not work for gunners. [0,0,0] is returned.
    That would be the easiest solution.

    Anyone has an idea on how to get the absolute position of a static weapon gunner?
    Last edited by Charon Productions; Jul 27 2012 at 14:37.
    Arma3 Projects in Development : The Undead Mod 3
    Released Arma3 Projects : TroopMonA3
    Arma2 Projects in Development : TroopMon 3 & The Undead Mod 2
    Released Arma2 Projects :The Undead Mod & TroopMon 2 & Predator Mod & Artillery Plus & UrbanPack & Crocodile

  2. #2
    Ok, found a solution.
    Basically you need to determine the axis position coordinates with a combination of 2 selections ("HitBody" >> "name" and "memoryPointGunnerOptics").
    From there it's simple trigonometric math.

Similar Threads

  1. Putting Gunner in Second Gunner Position (Jackal)
    By Jblack9 in forum ARMA 2 & OA - GENERAL
    Replies: 1
    Last Post: Aug 31 2010, 03:14
  2. Can't Get Into Gunner Position in Technicals
    By John_Chrichton in forum ARMA 2 & OA - TROUBLESHOOTING
    Replies: 0
    Last Post: Mar 12 2010, 04:51
  3. Second gunner position in UH-60
    By TJ_au in forum ARMA - MISSION EDITING & SCRIPTING
    Replies: 4
    Last Post: Jun 25 2007, 06:32
  4. Helicoptor Gunner position?
    By Monkey Lib Front in forum ADDONS & MODS: DISCUSSION
    Replies: 1
    Last Post: Jun 13 2004, 03:30
  5. Problem with gunner position
    By Flaber in forum OFP : O2 TROUBLESHOOTING
    Replies: 16
    Last Post: Apr 6 2004, 22:27

Posting Permissions

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