Home   Help Search Login Register  

Author Topic: How can I detect if there is some gunner in vehicle?  (Read 479 times)

0 Members and 1 Guest are viewing this topic.

Twyggy

  • Guest
I just need to know script with wich I can detect if there is in vehicle(ex M113) gunner or if there is not.    Thanx in advace to anybody who can help me!

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:How can I detect if there is some gunner in vehicle?
« Reply #1 on: 05 Mar 2003, 18:19:12 »
I think you can just check to see if the gunner is alive.

This line will wait until there is a gunner in _vehicle (it checks if the gunner is alive - something that isn't there can't be alive)

@alive gunner _vehicle

YOu could also haev the script wait until there is no gunner

@!alive gunner _vehicle


Code: [Select]
?alive gunner _vehicle:goto "alive"
hint "There is no gunner!"
exit

#alive
hint "There is a gunner!"
exit
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Twyggy

  • Guest
Re:How can I detect if there is some gunner in vehicle?
« Reply #2 on: 05 Mar 2003, 20:02:19 »
It WORX :o !!!!!!! Thank U a lot! U won't be forgoten! This will make my addon very different from the others! THANK U!

Offline Zayfod

  • ECP Team
  • *
  • Llama, softest natural fibre in the world.
Re:How can I detect if there is some gunner in vehicle?
« Reply #3 on: 07 Mar 2003, 02:43:17 »
Very cool,
I can use this ;D

cheers toadlife
 :cheers:
"I have come here to kick ass and chew bubble gum......an I'm all outta bubble gum!"