Home   Help Search Login Register  

Author Topic: Not in as M2 Gunner?  (Read 417 times)

0 Members and 2 Guests are viewing this topic.

GingaWRATH

  • Guest
Not in as M2 Gunner?
« on: 10 Dec 2004, 13:37:12 »
Yoo guys any one know the command for checking if a guy is not in as an M2 Gunner?

eg,  
 ive got an addaction to move guy in gunner on vehicle

the gun then rises out of vehicle

when guy exits and the gun lowers.

I need the script to check when guy is nolonger in gunner m2
« Last Edit: 10 Dec 2004, 13:41:56 by GingaWRATH »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Not in as M2 Gunner?
« Reply #1 on: 10 Dec 2004, 13:40:04 »
gunner vehicle

Operand types:
vehicle: Object
Type of returned value:
Object
Description:
Gunner of the vehicle, if vehicle is not vehicle but person, person is returned.

Example:
gunner vehicle player
Plenty of reviewed ArmA missions for you to play

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Not in as M2 Gunner?
« Reply #2 on: 10 Dec 2004, 13:43:26 »
The M2 is treated as a vehicle so try:
not (guy in <nameofgun>)

or even:
vehicle guy != <nameofgun>

or:
<nameofgun>G != guy

Edit: macguba posted as I was writing. So try also:
gunner <nameofgun> != guy
« Last Edit: 10 Dec 2004, 13:45:10 by THobson »

GingaWRATH

  • Guest
Re:Not in as M2 Gunner?
« Reply #3 on: 10 Dec 2004, 14:01:04 »
Ye didnt think it was the same as a vehicle thanx i used

?not (guy in nameofgun)


worx great

Thanx again