i just have 1 problem with this the only way to get the source of the attacker is by accessing private GameObject sourceEntity
and theres also (which is triggered with different weapons):
OnPlayerRangeDamage - Semi Complete hooks
Discussion in 'Hurtworld Development' started by ownprox, Dec 10, 2015.
-
Wulf Community Admin
Are you asking a question or showing an example? You already have the thread marked as Solved, so it isn't exactly clear.
-
oh im asking, and also showing you maybe a good place for hooks for player damage check them out if you can,
is there any way i can pass a private parameter through the hook within the class that this function is in because there is sourceEntity that i need to hook a private GameObject in the class that FireServer void is in but im not quite sure how to use the custom arguments in the hook settings just wondering if you have a basic example so i can complete my hook because i can currently only locate the victim due to not being able to pass a variable from the class through the hook im makingLast edited by a moderator: Dec 12, 2015 -
Is this method actually and wrong? I made an hook OnFireServer, and how can i call it in hurtworld oxide plugin?
-
Wulf Community Admin
-
-
Wulf Community Admin
-
Code:object OnFireServer(EquippedHandlerServer handler, SpearItemEquippedState state) { return true; }
-
Wulf Community Admin
-
-
Wulf Community Admin
-
-
Wulf Community Admin
-