Skip to content

Car Alarm

Mike-MF edited this page Jan 17, 2024 · 1 revision

This page will explain the usage of the Car Alarm function.


/*
 * Author: Mike
 * Car alarm playing on vehicle hit, handled locally per player.
 *
 * Call from initPlayerLocal.sqf
 *
 * Arguments:
 * 0: Car <OBJECT>
 * 1: Remove Event After Use <BOOL> (default: true)
 *
 * Return Value:
 * None
 *
 * Examples:
 * [My_Car, false] call MFUNC(carAlarm);
*/

Usage

This has a car play its alarm sound upon taking damage from players, it can be set so it only happens once or can continually keep happening over time.

Call from initPlayerLocal.sqf

Example:

[My_Car] call MFUNC(carAlarm);
Clone this wiki locally