Protection Area Shield - Scripts

Posts 1–2 of 2 · Page 1 of 1
Protection Area Shield - Scripts
Was messing around and came up with this seemed like it could be fun Don't think I have ever seen it used.

Spawn Shield:
Code:
'Goat' createunit [[(getpos player select 0), (getpos player select 1), 50], group player,'beeeh = this', 1.0, 'PRIVATE'];
 beeeh addMPEventHandler ['mphit',
{
    if (isServer) then
    {
        dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,getPos beeeh nearestObject vehicleToSpawn];
		_Dirback = 4;
		_LHDspawn = _this select 0;
		_LHDdir = ((getdir _LHDspawn)+_Dirback);
		_LHDspawnpoint = getpos _LHDspawn;
			_dummy = "ProtectionZone_Ep1" createvehicle _LHDspawnpoint;
			_dummy setdir _LHDdir;
			_dummy attachto [_Boat];
			_dummy setDir 180;
    };
}];
Delete Shield:
Code:
closeDialog 0;
hint "Removing Shield";
_bye = nearestObjects [vehicle player, ["ProtectionZone_Ep1"], 200];
{deletevehicle _x} forEach _bye;
Attempted, it's similar to the body guard script, kicks you for Remote exec error.
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us