Jump to content

Idles stuck


Dooge

Recommended Posts

Posted

I'm learning to play idels from script, and I got so far as to add custom idles through fnis and starting them from script, but once they're played, the actor stays in the last pose of the idle, and does not resume the normal/default idle.

 

It's propably something I can solve but I'm so sleepy and will need to go to bed, perhaps someone can throw a bone meanwhile and I can pick it up when I wake.

function OnKeyDown(Int keyCode)
	if keyCode == 51
		self.D("Comma pressed", false)
		self.SetActorRef()
		if akActor.PlayIdle(Idle001)
			self.D("Idle playing", false)
		else
			self.D("Something went wrong", false)
		endIf
	endIf
endFunction
Posted

Use the safer: Debug.sendAnimationEvent.

 

Get the animationevent name of the idle you wanna start.

Send it:

 

Debug.sendAnimationEvent(PlayerRef, "animEvent")

 

Wait the time you want, and then send:

 

Debug.sendAnimationEvent(PlayerRef, "IdleForceDefaultState")

 

 

Or use your code, but then when you wanna stop it use, always: Debug.sendAnimationEvent(PlayerRef, "IdleForceDefaultState") 

 

 

Many idles do not revert to the original animation graph.

 

Posted

Use the safer: Debug.sendAnimationEvent.

 

Get the animationevent name of the idle you wanna start.

Send it:

 

Debug.sendAnimationEvent(PlayerRef, "animEvent")

 

Wait the time you want, and then send:

 

Debug.sendAnimationEvent(PlayerRef, "IdleForceDefaultState")

 

 

Or use your code, but then when you wanna stop it use, always: Debug.sendAnimationEvent(PlayerRef, "IdleForceDefaultState") 

 

 

Many idles do not revert to the original animation graph.

 

I maed this: http://www.loverslab.com/files/file/3158-animator/

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...