Home   Help Search Login Register  

Author Topic: Check if vehicle is empty  (Read 2325 times)

0 Members and 1 Guest are viewing this topic.

Offline Andor14

  • Members
  • *
Check if vehicle is empty
« on: 30 Apr 2010, 12:07:02 »
Hi
Does anybody know how to check if an vehicle is empty.
i want to use it to make the vehicle respawn, i got everything working except i don't know how to check if a vehicle is empty.
oh and srry for my bad english. :P

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: Check if vehicle is empty
« Reply #1 on: 30 Apr 2010, 12:37:08 »
Code: [Select]
if ((count crew vehicleName) == 0) then {hint "vehicle is empty!"};
For instance (vehicleName being the name of the vehicle, of course).

Wolfrug out.

"When 900 years YOU reach, look as good you will not!"

Offline Andor14

  • Members
  • *
Re: Check if vehicle is empty
« Reply #2 on: 30 Apr 2010, 12:52:22 »
Thank you very much,m gonne try i now :D