All right looking forward to it...
What about the ~Weapon (un)sheated~ event ??? I tried EVENT_PLAYER_COMBAT_STATE but it doesnt work the way I want. Does this event exist (if anyone knows) ? I just want to detect if you sheated or unsheated weapon.
And now for another basic noob question : how do I actually use an event in the fired function ?
I have
Code:
EVENT_MANAGER:RegisterForEvent("MXPV", EVENT_PLAYER_COMBAT_STATE, MXPV.GetCombatState);
Now I want to check if EVENT_PLAYER_COMBAT_STATE is true or false -> documentation says -> (bool inCombat).
I tried
Code:
EVENT_MANAGER:RegisterForEvent("MXPV", EVENT_PLAYER_COMBAT_STATE, MXPV.GetCombatState(event));
Doesnt work (event = nil) and
Code:
MXPV.CombatState = EVENT_PLAYER_COMBAT_STATE;
Gives event_id and as well
Code:
MXPV.CombatState = EVENT_PLAYER_COMBAT_STATE.inCombat;
Property = nil
So ?