Created
July 28, 2017 00:57
-
-
Save linkalex13110/2214f0fe32594576efc740f8bb8298dd to your computer and use it in GitHub Desktop.
Comment changer la sirène de base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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