Jump to content

Photo

Playing idle animation when player equips item


  • Please log in to reply
No replies to this topic

#1
Gameinator

Gameinator

    Regular

  • Premium Member
  • 61 posts
What I am trying to do is when my player equips a pair of glasses is make the glasses play an idle animation which appears to be pulling down glasses and when I unequip them I play another animation which appears to be pulling the glasses up.
Here is what I have so far but does not work (animation plays when I load and when I equip the item it wont play again).
scn 0GlassesOnOffScript

Begin OnEquip
	

player.playidle glasses_down

End

Begin OnUnEquip
	
player.playidle glasses_up

End

Any help to get this to work would be appreciated.




Page loaded in: 1.051 seconds