Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //PLAYER RADIO WARNING Credits: mmmyum
- /*
- //Add below line to server_spawnCrashSite.sqf
- NewCrashSiteYum = _position; publicVariable "NewCrashSiteYum";
- //Call this out in you init.sqf
- if (!isDedicated) then {
- [] execVM "fixes\player_Crashmessages.sqf";
- };
- //Create folder named fixes and put in you mission.pbo. Copy and paste this entire file into player_Crashmessages.sqf and put into fixes folder.
- */
- private ["_playerRadio","_position","_lastPos"];
- sleep 300; //wait before start
- //SETUP INITIALIZE VARIABLES
- _position = [0,0,0];
- _lastPos = [0,0,0];
- //MAIN LOOP
- while {true} do {
- //checking for radio and new crash site
- _playerRadio = "ItemRadio" in items player; //check radio
- if(!(isNil "NewCrashSiteYum")) then { _position = NewCrashSiteYum; }; //check to see if NewCrashSite is defined, if it is, set _postion to it
- //send message if has radio and if _position does not match _new position
- if (_playerRadio) then {
- if (((_position select 0) != (_lastPos select 0)) and ((_position select 1) != (_lastPos select 1))) then {
- playSound "radionoise1";
- cuttext [format["Radio Tuning..."], "PLAIN DOWN"];
- sleep 5;
- cuttext [format["Helo Unit 6-1 Call for Base"], "PLAIN DOWN"];
- sleep 5;
- cuttext [format["Taking Fire from an unknown enemy! Were Hit"], "PLAIN DOWN"];
- sleep 5;
- //cuttext [format["MAYDAY! We are going down! UH6-1 is going down! " + str{_position} + " repeat " + str{_position}], "PLAIN DOWN"];
- //@AxeCain - _position will have the worldspace coordinates, not in game coordinates - so this won't make sense to players -- mmmyum
- sleep 5;
- playSound "radionoise1";
- cuttext [format["TEST, You have marked the location on your map. Hurry! You may be able to save them!"], "PLAIN DOWN"];
- _lastPos = _position;
- };
- };
- };
- sleep 180; //recheck 3 mins
Advertisement
Add Comment
Please, Sign In to add comment