VN_fnc_whitelisted_arsenal_vehicle_eject

From Savage Game Design Wiki
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Ethan Johnson
Argument(s): global
Effect(s): global

Description

Gets the vehicle the player has gotten into and checks it against the vehicles for their current rank and ejects the unit if needed. Should be used with the "GetInMan" & "SeatSwitchedMan" event handlers

Syntax

Syntax
[vehicle] call VN_fnc_whitelisted_arsenal_vehicle_eject
Parameters
vehicle: Object - vehicle the player has gotten into
Return value
Nothing

Examples

Example 1
[sogJeep] call VN_fnc_whitelisted_arsenal_vehicle_eject;