07-28-2012, 07:20 AM
(07-12-2012, 04:46 AM)Lapayo Wrote: But there must be another solution, I really hate these lines
That's right, those lines are pain to write for simple things. That's why I was planning on adding a few utility functions for the usual actions done with objects. So you'd actually call World->EntityTakeDamage(EntityID, DamageAmount); and it would internally use the callback mechanism. Didn't get around to writing this yet, though.
This would be especially good for Lua, so that plugins don't need to write those callbacks too often. Lua people get weirded out by them