03-15-2011, 05:29 AM
(03-11-2011, 09:43 AM)FakeTruth Wrote: Okay I wrote something about the two new hooks:
OnTakeDamage: http://mc-server.org/wiki/doku.php?id=ap...takedamage
OnKilled: http://mc-server.org/wiki/doku.php?id=ap...n:onkilled
function Plugin:OnTakeDamage( Pawn, TDI )
LOG("Damage: ".. TDI.Damage )
if( TDI.Instigator:IsA("cSpider") ) then -- Check if instigator is a Spider
TDI.Damage = 999 -- change the damage to 999 ! Instant killing spiders
end
end
so what would you change cSpider to to get the hook for fall damage?