Poll

Want?

Yes
5 (100%)
No
0 (0%)

Total Members Voted: 5

Author Topic: Altitude Killer  (Read 1261 times)

Why not use Zone Bricks?

Code: [Select]
OnPlayerEnterZone(or something like that) --> Player --> Kill
that should work

Why not use Zone Bricks?

Code: [Select]
OnPlayerEnterZone(or something like that) --> Player --> Kill
that should work
Because you don't read.
I need a better way of killing people, bots, and destroying vehicles when they get too low other than placing a metric stuffton of evented zones.

Code: [Select]
$Swol::Alt_VehicleDeath = 0;
$Swol::Alt_MinigameOnly = 0;
$Swol::Alt_Height = -40;
$Swol::Alt_Enabled = 1;
package swol_altitudeKill
{
function gameConnection::createPlayer(%this,%pos)
{
parent::createPlayer(%this,%pos);
%this.player.altCheckSched = %this.player.schedule(500,altitudeLoop);
}
function Player::altitudeLoop(%this)
{
cancel(%this.altCheckSched);
if(!isObject(%this))
return;
if(%this.noAltitudeDeath)
return;
if(isObject(%this.client) && $Swol::Alt_MinigameOnly)
{
if(!isObject(%this.client.minigame))
return;
if(!%this.client.minigame.fallingDamage)
return;
}
//%vehicle = %this.getObjectMount();
%z = getWord(%this.getPosition(),2);
if(%z <= $Swol::Alt_Height)
%this.kill();

%this.altCheckSched = %this.schedule(500,altitudeLoop);
}
};
activatePackage(swol_altitudeKill);
heres liek some code or soemthing
Thanks.  I will try that out.