r174
#7
(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 spidersBig Grin
end
end

so what would you change cSpider to to get the hook for fall damage?
Reply
Thanks given by:


Messages In This Thread
r174 - by distroyed123 - 03-09-2011, 12:06 AM
RE: r174 - by Tybor - 03-09-2011, 02:36 AM
RE: r174 - by FakeTruth - 03-09-2011, 08:59 AM
RE: r174 - by distroyed123 - 03-09-2011, 10:27 AM
RE: r174 - by distroyed123 - 03-10-2011, 11:17 PM
RE: r174 - by FakeTruth - 03-11-2011, 09:43 AM
RE: r174 - by distroyed123 - 03-15-2011, 05:29 AM
RE: r174 - by FakeTruth - 03-17-2011, 04:30 AM
RE: r174 - by distroyed123 - 03-19-2011, 06:35 AM



Users browsing this thread: 2 Guest(s)