Search found 3 matches

Return to advanced search

Re: Damage Dealt Event

on_punch(self, puncher, time_from_last_punch, tool_capabilities, dir) — Called by the engine when somebody punches the object. Note that you probably want to handle most punches using the automatic armor group system (See #Entity Damage). puncher — An ObjectRef or nil. time_from_last_punch — Can be...
by STP
Tue Feb 17, 2015 03:40
 
Forum: Modding Discussion
Topic: Damage Dealt Event
Replies: 4
Views: 842

Re: Damage Dealt Event

Judging by the lack of replies it's looking like I may not be able to do what I wanted to.

So if I can't detect when damage is dealt, what about an event for when a mob is killed/defeated/destroyed? Is that possible?

Or failing that, when a mob has been hit at all?
by STP
Mon Feb 16, 2015 15:24
 
Forum: Modding Discussion
Topic: Damage Dealt Event
Replies: 4
Views: 842

Damage Dealt Event

I'm creating a mod in which I'd like to know when a player deals damage to a LuaEntitySAO. It's my understanding there is a new damage system in use that might facilitate this, plus I can see the output dumped to the log when damage is dealt (output through ACTION[ServerThread]) so I know the engine...
by STP
Sat Feb 14, 2015 16:55
 
Forum: Modding Discussion
Topic: Damage Dealt Event
Replies: 4
Views: 842

Return to advanced search