A fun Altis Life script.
Here is a little fun script I made that I still use for Altis Life.
What this does;
Not sure the use of this, I just like ruining servers and making everyone rage quit.
Only works on Altis Life hence "life_fnc_restrain"








Code:
_targ = cursorTarget;
_dir = 0;
// Restraining player
{
if (isPlayer _x) then
{
if(!(_x == _targ)) then
{
_x setVariable["restrained", true, true];
[
[_x], "life_fnc_restrain", _x, true
] spawn life_fnc_MP;
_x allowDamage false;
_x addEventHandler ["HandleDamage",{false}]; // No clue why none of this godmode shit doesn't work.
};
};
} forEach playableUnits;
// Attaching players to the target (Escorting)
{
_x attachTo[_targ, [0.1, 1.1, 0]];
_x setVariable["transporting", false, true];
_x setVariable["Escorting", true, true];
} forEach playableUnits;
// Attempted jump scare
_targ say3D "flashbang";
// Throwing the 'target' into the air with all the restrained players.
_targ setPos [(getPos player select 0) + 50, (getPos player select 1) + 50, (getPos player select 2) + 1000];
sleep 5;
// Kills the 'target'
deleteVehicle _targ;
// Unrestrains everyone allowing them to skydive until they hit the ground
{
if (isPlayer _x) then
{
if(!(_x == _targ)) then
{
_x setVariable["restrained", false, true];
[
[_x], "life_fnc_restrain", _x, false
] spawn life_fnc_MP;
_x allowDamage true;
_x addEventHandler ["HandleDamage",{true}];
};
};
} forEach playableUnits;
- Restrains everyone
- Makes the cursor target escort all the players (give them the blame
) - Throws the cursor target in the air with everyone attatched to him
- Kills the cursor target
- Unrestrains everyone (so they can skydive until they hit the ground)
Not sure the use of this, I just like ruining servers and making everyone rage quit.
Only works on Altis Life hence "life_fnc_restrain"









