Skip to content

Commit

Permalink
quick fix for dance trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
aduermael authored and gdevillele committed Apr 9, 2024
1 parent 746dc38 commit d3ac35f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lua/modules/cubzh.lua
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,14 @@ Client.OnWorldObjectLoad = function(obj)
trigger.CollisionGroups = {}
trigger.CollidesWithGroups = PLAYER_COLLISION_GROUPS
trigger.OnCollisionBegin = function(_, p)
p.Animations.Dance:Play()
if p.Animations.Dance ~= nil then
p.Animations.Dance:Play()
end
end
trigger.OnCollisionEnd = function(_, p)
p.Animations.Dance:Stop()
if p.Animations.Dance ~= nil then
p.Animations.Dance:Stop()
end
p.Head.LocalRotation = { 0, 0, 0 }
end
end
Expand Down

0 comments on commit d3ac35f

Please sign in to comment.