Home   Help Search Login Register  

Author Topic: Detecting whether the player is armed  (Read 423 times)

0 Members and 1 Guest are viewing this topic.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Detecting whether the player is armed
« on: 12 Feb 2003, 08:42:01 »
I would really like to be able to detect whether the player has a weapon or not. Basically, the idea is that I want the enemy not to shoot at the player when he is unarmed, but when he grabs a rifle, I want them to shoot at him. It would be fine if grenades don't set this off, or just having magazines.

I know you could use the "hasweapon" command, but that only tests for one specific weapon. Same with the "ammo" command. I know they could work, but I would have to set up a trigger for EVERY single weapon the player could possibly grab. Is there an easier way to do this?

Another, similar question is whether there is a way to tell if a unit has their rifle on their back.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

CrashnBurn

  • Guest
Re:Detecting whether the player is armed
« Reply #1 on: 12 Feb 2003, 10:19:56 »
trigger condition:

someammo player

basil_rs

  • Guest
Re:Detecting whether the player is armed
« Reply #2 on: 19 Feb 2003, 17:48:50 »
count weapons player > 0
should be armed