mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Handle player not existing
This commit is contained in:
parent
2027a28959
commit
195643d557
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user