Jump to content

Recommended Posts

Hello everyone I would like to know if I can change the animation of an action being performed by editing the second item in

    AddStategraphPostInit("wilson",function(sg)
	local actionhandlers =	
ActionHandler(GLOBAL.ACTIONS.MIGRATE, "doshortaction")

in migrate, I tried using global.actions in case if it was not detectable but it does not seem to work, so what is going on? how can I add edit existing action handlers? I want to edit it because I am adding new actions for the wereform can do for woodie but it just glitches sometimes without "doshortaction"  if possible I would like to have the action handler only be different if the player is woodie and is a werebeaver in other words...

    AddStategraphPostInit("wilson",function(sg)
    if inst.prefab == "woodie" and inst:HasTag("wereplayer") then
	local actionhandlers =	
ActionHandler(GLOBAL.ACTIONS.MIGRATE, "doshortaction")
   or nil 

I really want the wereforms to be able to exit and enter caves, the original code from SGWilson.lua is


local actionhandlers =
{
  -------with some other actions as example but I wonder if replacing just one actionhandler with botch everything else up
      ActionHandler(ACTIONS.BEGIN_QUEST, "doshortaction"),
    ActionHandler(ACTIONS.ABANDON_QUEST, "dolongaction"),
     ActionHandler(ACTIONS.MIGRATE, "migrate"),
  }

 

Edited by ColombianCam
more info
Link to comment
https://forums.kleientertainment.com/forums/topic/117955-edited-action-animation/
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...