Is there a current hook for OnEntityDeath or OnUserDeath in covalence. I can't seem to find anything. Any tips?
Could we get this added by chance?
Request OnUserKilled - Covalence Hook
Discussion in 'Feature Suggestions' started by Austinv900, Oct 4, 2016.
-
Covalence has no generic DeathHandler for all games.
Those functions are only game specific controlled. -
I was thinking somthing that just outputs a victim and attacker.
It would be somthing like so
This for Rust. Wouldn't be just adding it to the games oxide project files?
Code:void OnEntityDeath(BaseCombatEntity Entity, HitInfo info) { try { var victim = covalence.Players.GetPlayer(Entity.ToPlayer().UserIDString); var attacker = covalence.Players.GetPlayer(info.Initiator.ToPlayer().UserIDString); Interface.Call("OnUserKilled", victim, attacker); } catch { } }
-
Wulf Community Admin
-
Sweet.