Lua/Events/Client/LocalPlayerForcePulseHit
From JC2-MP Documentation
< Lua
Name | LocalPlayerForcePulseHit |
---|---|
Arguments (in table) | Player attacker, number damage |
Return option | Return false to block the effect. |
Description
Fired when you're hit a force pulse effect (currently only the air propulsion gun). attacker is not guaranteed to exist.
Examples
Foo = function(args) local message = tostring(args.attacker).." blew you for "..tostring(args.damage).." damage!" Chat:Print(message, Color(255, 255, 255)) end Events:Subscribe("LocalPlayerForcePulseHit", Foo)