Home   Help Search Login Register  

Author Topic: Checking weapon  (Read 822 times)

0 Members and 1 Guest are viewing this topic.

Iva

  • Guest
Checking weapon
« on: 01 Jul 2004, 22:10:44 »
Is there some way to get name of curently selected weapon or name of weapon that was just selected? ???

Offline TonyRanger

  • Members
  • *
  • I'm a llama!
Re:Checking weapon
« Reply #1 on: 04 Jul 2004, 10:16:52 »
_ap=_this select 0
#main
_weapon=primaryweapon _ap
?_weapon=="m16":hint"you get it"
goto"main"

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Checking weapon
« Reply #2 on: 04 Jul 2004, 12:23:54 »
Nope, won't work Tony...

primaryWeapon returns the weapon in the primary weapon slot, not the weapon the soldier has selected / is holding...

But, if I misunderstood the first post, my apologies... ::)
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Iva

  • Guest
Re:Checking weapon
« Reply #3 on: 16 Jul 2004, 20:36:47 »
Nope. Im searching for script that sa Hater_Kint said that returns curent selected weapon!
Something like

_wep =  _unit selectedweapon

or something   :-\

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Checking weapon
« Reply #4 on: 16 Jul 2004, 23:34:54 »
Maybe some fancy nearestObject rune would do the trick?

Maybe the weapon could be detected with that, but then it would still probably pick the weapon on the units back as it's closer ::)

I think this is with the 'get units stance' is one the features BIS have forgotten to release for public use...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.