Handle player not existing

This commit is contained in:
esteldunedain 2015-05-14 15:24:35 -03:00
parent 2027a28959
commit 195643d557

View File

@ -1,7 +1,7 @@
/*
* Author: Winter
* Sets the player's current view distance according to whether s/he is on foot, in a land vehicle or in an air vehicle.
*
*
*
* Arguments:
* 0: Show Prompt <BOOL>
@ -21,6 +21,8 @@ PARAMS_1(_show_prompt);
private["_land_vehicle","_air_vehicle"];
if (isNull ACE_player) exitWith {};
_land_vehicle = (vehicle ACE_player) isKindOf "LandVehicle";
_air_vehicle = (vehicle ACE_player) isKindOf "Air";