I try to play an animation when an object is destroyed but nothing works
Here's the code I found on GT :
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Moderator: Moderators
Code: Select all
animatetan4_prop_Console = OnObjectKillName(
function(object, killer)
PlayAnimation("shieldright")
end,
"myg1_prop_energy_collector_shield3"
)
It has not workedMarth8880 wrote:Try this code instead:Code: Select all
animatetan4_prop_Console = OnObjectKillName( function(object, killer) PlayAnimation("shieldright") end, "myg1_prop_energy_collector_shield3" )