Blockland Forums > General Discussion
Furling's Jet Ski Racing
<< < (7/8) > >>
jes00:

--- Quote from: Cubelands on January 13, 2013, 03:59:21 AM ---Q:Why not you use water kill player?
A:The water kill vehicle of bots (AI player)

--- End quote ---
It can easily be made to not kill bots.
Cubelands:

--- Quote from: jes00 on January 15, 2013, 07:16:15 AM ---It can easily be made to not kill bots.

--- End quote ---
How?
jes00:

--- Quote from: Cubelands on January 15, 2013, 07:34:09 AM ---How?

--- End quote ---

--- Code: ---package killInWater
{
function armor::onEnterLiquid(%this, %obj, %coverage, %type)
{
if(%type < 4 && %obj.getClassName() $= "Player")
{
%obj.kill();
}

parent::onEnterLiquid(%this, %obj, %coverage, %type);
}
};
activatePackage(killInWater);

--- End code ---
That should work.
Cubelands:

--- Quote from: jes00 on January 15, 2013, 07:38:51 AM ---
--- Code: ---package killInWater
{
function armor::onEnterLiquid(%this, %obj, %coverage, %type)
{
if(%type < 4 && %obj.getClassName() $= "Player")
{
%obj.kill();
}

parent::onEnterLiquid(%this, %obj, %coverage, %type);
}
};
activatePackage(killInWater);

--- End code ---
That should work.

--- End quote ---

Put in Water_HarmingWater script? Water_HarmingWater made by PurpleMetro
jes00:

--- Quote from: Cubelands on January 15, 2013, 07:43:29 AM ---Put in Water_HarmingWater script? Water_HarmingWater made by PurpleMetro

--- End quote ---
Where's that?
Navigation
Message Index
Next page
Previous page

Go to full version