Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linkalex13110/2214f0fe32594576efc740f8bb8298dd to your computer and use it in GitHub Desktop.
Save linkalex13110/2214f0fe32594576efc740f8bb8298dd to your computer and use it in GitHub Desktop.
Comment changer la sirène de base
#include "..\..\script_macros.hpp"
/*
File: fn_copSiren.sqf
Author: Bryan "Tonic" Boardwine
Description:
Starts the cop siren sound for other players
*/
private["_vehicle"];
_vehicle = param [0,ObjNull,[ObjNull]];
if (isNull _vehicle) exitWith {};
if (isNil {_vehicle getVariable "siren"}) exitWith {};
for "_i" from 0 to 1 step 0 do {
if (!(_vehicle getVariable "siren")) exitWith {};
if (count crew _vehicle isEqualTo 0) then {_vehicle setVariable ["siren",false,true]};
if (!alive _vehicle) exitWith {};
if (isNull _vehicle) exitWith {};
_vehicle say3D "SirenLong";//Class/name specified in description.ext
sleep 4.870;//Exactly matches the length of the audio file.
if (!(_vehicle getVariable "siren")) exitWith {};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment