10 lines
280 B
Lua
10 lines
280 B
Lua
|
dofile( "data/scripts/lib/utilities.lua" )
|
||
|
|
||
|
function set_main_animation( current_name )
|
||
|
local entity_id = GetUpdatedEntityID()
|
||
|
edit_all_components( entity_id, "SpriteComponent", function(comp,vars)
|
||
|
vars.rect_animation = current_name
|
||
|
end)
|
||
|
end
|
||
|
|
||
|
set_main_animation( "detonate" )
|