Car Alarm - Theseus-Aegis/MissionTemplate GitHub Wiki
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);
*/
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);