Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: send animation events to Lua #137

Open
dbartolini opened this issue Jan 17, 2023 · 0 comments
Open

runtime: send animation events to Lua #137

dbartolini opened this issue Jan 17, 2023 · 0 comments
Labels

Comments

@dbartolini
Copy link
Collaborator

AnimationStateMachine should send internal events (animation_end etc.) and user-defined events (from .sprite_animation files) to units via script component.

function Behavior.animation_event(event_id)
    if event_id == "foo" then ... end
    elseif event_id == "bar" ...
end
@dbartolini dbartolini changed the title runtime: send animation events Lua Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 participant