mirror of
https://github.com/Ghostrider-DbD-/GMS_RC.git
synced 2024-08-30 16:02:11 +00:00
25 lines
573 B
Plaintext
25 lines
573 B
Plaintext
/*
|
|
GMS_fnc_checkForEmptyVehicle
|
|
|
|
By Ghostrider [GRG]
|
|
Copyright 2016
|
|
|
|
Parameters:
|
|
_veh - the vehicle to check.
|
|
|
|
Returns:
|
|
None
|
|
|
|
--------------------------
|
|
License
|
|
--------------------------
|
|
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
|
|
|
|
http://creativecommons.org/licenses/by-nc-sa/4.0/
|
|
*/
|
|
#include "\GMS\Compiles\Init\GMS_defines.hpp"
|
|
params["_veh"];
|
|
if (crew(_veh) isEqualTo [] || {({alive _x} count (crew _veh) isEqualTo 0)}) then
|
|
{
|
|
[_veh] call GMS_fnc_handleEmptyVehicle;
|
|
}; |