Home   Help Search Login Register  

Author Topic: empty Vehicle  (Read 569 times)

0 Members and 1 Guest are viewing this topic.

skid

  • Guest
empty Vehicle
« on: 16 Jul 2003, 01:14:03 »
Can anyone tell me if it is possible to find out if a vehicle is empty?.

I'm looking for a trigger to be activated if the Machine gun becomes empty.

I carn't use not(alive who) because I don't know who current  Machine gunner is.

All I need to know is is it empty.
« Last Edit: 16 Jul 2003, 01:14:30 by skid »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:empty Vehicle
« Reply #1 on: 16 Jul 2003, 01:21:33 »
I believe there's a script in the Ed Depot which checks if an MG is empty and assigns a new gunner if it is.
Plenty of reviewed ArmA missions for you to play

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:empty Vehicle
« Reply #2 on: 16 Jul 2003, 01:58:10 »
In the condition field of your trigger :

(gunner myMachineGun) IsNull


Don't forget to set your trig on repeatedly if need be !

skid

  • Guest
Re:empty Vehicle
« Reply #3 on: 16 Jul 2003, 02:48:51 »
The script may work for what I want I haven't had time to test it yet.

I did try (gunner myMachineGun) IsNull

but it didn't work I get this
 (gunner mygrp) IsNull  unknown operator isnull
the hash between mygrp) and isnull
this would be great if it worked I have a need for something like this.

Thanks guys
« Last Edit: 16 Jul 2003, 02:50:20 by skid »

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:empty Vehicle
« Reply #4 on: 16 Jul 2003, 03:00:04 »
Sorry skid, I meant :

IsNull (gunner blabla)

blabla is the name of the mg.

 :cheers:

skid

  • Guest
Re:empty Vehicle
« Reply #5 on: 16 Jul 2003, 03:22:29 »
yes I had the same thought I don't get an error  now
but it won't activate the trigger either.

I have the following setup
an empty machinegun mg1

Repeated trig
cond: isnull (gunner mg1)

But it won't activate if I replace the "isnull (gunner mg1)"   with "THIS" and have a man entering the trigger it activates.
So I know the trig works it just the isnull that doesn't

Thanks



« Last Edit: 16 Jul 2003, 03:30:27 by skid »

skid

  • Guest
Re:empty Vehicle
« Reply #6 on: 16 Jul 2003, 03:40:56 »
Ok thanks guys I sorted it now it did work I just had to put a 1 second delay in the trigger.

Cheers sel