[Release] Spectre's SkyWrite

ZGreen-Spectre

Well-Known Member
Spectre's
SkyWrite


Adds a scroll wheel option to Skywrite for the AN2.
Currently there is only one option, all colors for 60 seconds. Later I will add more options for individual colors and different times (multiples of 60).
Files Modified:
Init.sqf
Files Added:
SWS.sqf
SkyWrite.sqf
Easy = Blue <10
Installation Steps -

Step 1: In your init.sqf find
Code:
//Run the player monitor
    _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
    // [] execVM "\z\addons\dayz_code\system\antihack.sqf";
change to
Code:
//Run the player monitor
    _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
    // [] execVM "\z\addons\dayz_code\system\antihack.sqf";
    _nul = [] execVM "scripts\SWS.sqf";

Step 2: Make two files called SWS.sqf and SkyWrite.sqf and place them into a folder called scripts.


Step3: Open them and insert the following codes

SkyWrite.sqf
Code:
if (speed player < 60) then  {
        _smoke0 = "SmokeShellWhite" createVehicle (position player);
        _smoke0 attachTo [vehicle player,[0,0,1]];
        _smoke1 = "SmokeShellBlue" createVehicle (position player);
        _smoke1 attachTo [vehicle player,[0,0,1]];
        _smoke2 = "SmokeShellGreen" createVehicle (position player);
        _smoke2 attachTo [vehicle player,[0,0,1]];
        _smoke3 = "SmokeShellOrange" createVehicle (position player);
        _smoke3 attachTo [vehicle player,[0,0,1]];
        _smoke4 = "SmokeShellPurple" createVehicle (position player);
        _smoke4 attachTo [vehicle player,[0,0,1]];
        _smoke5 = "SmokeShellYellow" createVehicle (position player);
        _smoke5 attachTo [vehicle player,[0,0,1]];
        _smoke6 = "SmokeShellRed" createVehicle (position player);
        _smoke6 attachTo [vehicle player,[0,0,1]];
};

SWS.sqf
Code:
if (isServer) exitwith {};
waitUntil {sleep 2; count vehicles > 1};
sleep 10;
{
If (typeOf _x in ["AN2_DZ"]) then {
_SkyWrite = _x addAction [("<t color=""#2bc0a7"">Sky Write</t>"),"scripts\SkyWrite.sqf","write",1,false,true,"","driver _target == player"];
};
}forEach (vehicles);

And you are done! Enjoy!

 
SkyWrite V1.0

Instructions:
Follow step 1 from the above instructions then download SkyWrite here and place into your mission.pbo into a folder called scripts (create one if you don't have it), if you already have the previous SkyWrite you'll need to overwrite your SWS.sqf and remove your old SkyWrite.sqf.

Before you say it doesn't work double check that you have in your mission.pbo a folder named scripts and inside that is SWS.sqf and a folder named Skywrite. Double check the extensions and make sure you aren't misspelling anything.

Changes:
Adds a menu that lets you choose which color you'd like or a mixture of all the colors. Also only allows skywriting when the plane is actually flying. Standard 60 seconds still, varying times will be added later. Sorry for the long delay for this update, I've been busy.



Thanks to
[PvP Walkers] Hush
for the idea to add in
an altitude check!
 
Back
Top