Jcy Posted July 29, 2023 Posted July 29, 2023 Hey there,  Been looking for awhile now, I can't seem to find the piece of code that handles the AttackInteract input, when you activate an event via the Attackinteract key. I would like to change that key.  Where is this located?  Thanks!
0 Jcy Posted July 29, 2023 Author Posted July 29, 2023 Â I found: foreach (MapInstance eventMap in Maps.MapInstance.Lookup.Values) { foreach (var en in eventMap.LocalEntities) { if (en.Value == null) { continue; } if (en.Value.MapId == map && en.Value.X == x && en.Value.Y == y) { if (en.Value is Event) { //Talk to Event PacketSender.SendActivateEvent(en.Key); AttackTimer = Timing.Global.Milliseconds + CalculateAttackTime(); return true; } } } } Â In Player.cs, this was it, and I managed to do the changes.
Question
Jcy
Hey there,
Â
Been looking for awhile now, I can't seem to find the piece of code that handles the AttackInteract input, when you activate an event via the Attackinteract key. I would like to change that key.
Â
Where is this located?
Â
Thanks!
1 answer to this question
Recommended Posts