Blockland Forums > Modification Help

Ski Tumble Falling Damage

Pages: << < (2/2)

Audax:


--- Quote from: Plornt on June 12, 2010, 10:17:37 AM ---I think its: %obj.getMountedPlayer(0).addDamage(10);

--- End quote ---

So this would not work?

EDIT: Tried this but won't work.


--- Code: ---function deathVehicle::onImpact(%this,%obj)
{
//%trans = %obj.getMountedObject(0).getWorldBoxCenter();
%trans = %obj.getMountedObject(0).getEyePoint();
%p = new Projectile()
{
dataBlock = tumbleImpactAProjectile;
initialVelocity  = "0 0 0";
initialPosition  = %trans;
sourceObject     = %obj;
sourceSlot       = 0;
client           = %obj.client;
{
%obj.getMountedPlayer(0).addDamage(10);
}
};
MissionCleanup.add(%p);
}
--- End code ---


Pages: << < (2/2)

Go to full version