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";
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!