You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked the Issues/Discussions pages to see if my enhancement has already been suggested
What is your suggestion, and why should it be implemented?
I was trying to somehow get the character who hit the NoteKind with onNoteHit function, but I don't seem to find a way to get the id/character who hit the note. I am not sure if there is any way to make that possible with only onNoteHit event.
Reason for this implementation would be for easier data recieving in events, so NoteKinds are based on the character who hit the note aswell.
If anyone has a way, would also appreciate 👍
Update: I found a way to do this, but I have no idea how optimal it is:
overridefunctiononNoteHit(event:HitNoteScriptEvent) {
if (event.note.noteData.getMustHitNote()) // Returns true when if the note is on player side
}
The text was updated successfully, but these errors were encountered:
Starexify
changed the title
Enhancement: Allow the HitNoteScriptEvent/NoteScriptEvent to be able to recieve/get the character who hit the note
Enhancement: Allow the HitNoteScriptEvent/NoteScriptEvent to recieve/get the character who hit the note
Dec 9, 2024
Issue Checklist
What is your suggestion, and why should it be implemented?
I was trying to somehow get the character who hit the NoteKind with onNoteHit function, but I don't seem to find a way to get the id/character who hit the note. I am not sure if there is any way to make that possible with only onNoteHit event.
Reason for this implementation would be for easier data recieving in events, so NoteKinds are based on the character who hit the note aswell.
If anyone has a way, would also appreciate 👍
Update: I found a way to do this, but I have no idea how optimal it is:
The text was updated successfully, but these errors were encountered: