By
Reaper5150
Simple but fun little script I put together awhile ago.
What it does? It is bound to a object in this case "ItemObsidian" as a right click, but can be changed to whatever you want. It then will sends out a message to the players on the server and marks the player with red smoke and a marker on the map.
The player will then get 2 mins of god mod acting like the amour. Once the amour takes damage (All it is is a countdown timer really) The god mode is then disabled so they can be killed.
I'm still working on this and will update it when it is done. If any of you better scriptwriters then myself ( I'm still a noob lol) have any ideas on how to improve this? contact me so I can give you credit in the update :)
Known bugs:
marker sometimes stays on map
Credits to : @Schalldampfer For helping me understand map markers
Install: Place this in your scripts folder name it something like Jugg.sqf
//========================================================
//========= Juggernaut script-Written by Reaper5150 ===========
//=======================================================
sleep 2;
[nil,nil,rTitleText,"THERE IS A JUGGERNAUT,FIND HIM AND KILL HIM IF YOU CAN!!!","PLAIN",3] call RE;
sleep 1;
[nil, player, rSAY, "YOURSOUND.OGG", 100] call RE; //Add your custom sound here when Juggernaut spawns
[] spawn {
player removeMagazine 'ItemObsidian';//Add whatever object you want and bound to your right click function
sleep 5;
[nil,nil,rTitleText,"THE JUGGERNAUT HAS BODY ARMOR,WE CAN'T KILL HIM...HELP!!!","PLAIN",3] call RE;
////////Set marker/////////////////////////////////////////////////////////////////////
[] execVM "scripts\marker.sqf";
//Start Smoke Marker//////////////////////////////////////////////////////////////////////////
sleep 5;
PJ_grenade = "SmokeShellRed" createVehicle position player;
PJ_grenade attachto [vehicle player,[0.1,0,0]];
sleep 2;
[nil,nil,rTitleText,"THE JUGGERNAUT (PLAYER) HAS BEEN MARKED WITH SMOKE AND ON THE MAP!!!","PLAIN",3] call RE;
//Temp Godmode for 2 mins////////////////////////////////////////////////////
(vehicle player) removeAllEventHandlers "handleDamage";
(vehicle player) addEventHandler ["handleDamage", { false }];
(vehicle player) allowDamage false;
//Acts like a countdown timer//////////////////////////////////////////////////////////////////
sleep 90;
[nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR HAS TAKEN 30% DAMAGE","PLAIN",3] call RE;
sleep 100;
[nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR HAS TAKEN 50% DAMAGE","PLAIN",3] call RE;
sleep 110;
[nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR HAS TAKEN 90% DAMAGE","PLAIN",3] call RE;
uiSleep 120;
[nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR IS WEAK...TAKE HIM OUT NOW!!!","PLAIN",3] call RE;
sleep 2;
//Start ending Juggernaut///////////////////////////////////
(vehicle player) addEventHandler ["handleDamage", { true }];
(vehicle player) removeAllEventHandlers "handleDamage";
(vehicle player) allowDamage true;
uiSleep 240;
deleteVehicle PJ_grenade;
END;
Call it from your right click
["ItemObsidian","JUGGERNAUT","execVM 'scripts\Jugg.sqf';","true"],
marker.sqf:
_unit = player;
_nameP = name _unit;
_markerobjp = createMarker [_namep,[0,0]];
_markerobjp setMarkerShape "ICON";
_markerobjp setMarkerType "mil_dot";
_markerobjp setMarkerColor "ColorRed";
_markerobjp setMarkerText _nameP;
_markerobjp setMarkerSize [1,1];
while {alive _unit} do {
_markerobjp setmarkerdir (getdir _unit);
_markerobjp setMarkerPos (getPos _unit);
_markerobjp setMarkerText _nameP;
sleep 5;
};
////////////////////////////////////////////
uiSleep 240;
deleteMarker _markerobjp;
Greetings!
So I recently started up in a new host and haven't gotten to make the server run, found that a ca/modules bis_fnc issue is recurring but doesn't affect players when running coop missions like the default arma 2 oa ones, but when trying with Epoch hive won't connect/start despite being configured.
Hive error
Meanwhile at line 23...
I'm still bad with Pastebin, sorry.
This error has been chasing me for 2 days now
Share this post
Link to post
Share on other sites