OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Andor14 on 30 Apr 2010, 12:07:02

Title: Check if vehicle is empty
Post by: Andor14 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
Title: Re: Check if vehicle is empty
Post by: Wolfrug 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.

Title: Re: Check if vehicle is empty
Post by: Andor14 on 30 Apr 2010, 12:52:22
Thank you very much,m gonne try i now :D