Jump to content

Help with idle animations?


blazeda59

Recommended Posts

Ok well I'm having a bit of a problem with idle animations. For some reason after the player finishers the animation I can't move??? Combat, jumping and camera switching all work but movement wont. Now I know its the animations causing the issue because I can move around no problem after the script has run if I leave them out. I've tried about everything I can think of to restore control but nothing is working. Can anyone please shed some light on how to get the controls working again after forcing the player the play idle animations???

 

Thanks.

 

 

Here's the script.

Scriptname TeleportScript extends ObjectReference


FormList Property Locations Auto Const
Armor Property Pipboy Auto Const
Idle Property OnGround Auto Const
Idle Property GetUp Auto Const
Quest Property ControlsQuest Auto Const


Event OnActivate(ObjectReference akActionRef)

	Objectreference targetposmarker

	If (Locations.GetSize() == 0) 
		debug.traceandbox("critical: no locations given")
		return
	endif

	targetposmarker = Locations.getat(Utility.RandomInt(0,Locations.GetSize() -1)) as Objectreference

	If (targetposmarker ==  None)
		debug.traceandbox("critical: location not valid")
		return
	endif

	utility.wait(12)
	ControlsQuest.SetStage(20)
	Game.GetPlayer().UnequipAll()
	Game.GetPlayer().EquipItem(Pipboy, true,true)
	Game.FastTravel(targetposmarker)
	Game.GetPlayer().PlayIdle(OnGround)
	utility.wait(4)
	Game.GetPlayer().PlayIdle(GetUp)
	utility.wait(2)
	ControlsQuest.SetStage(0)

EndEvent

Link to comment
Share on other sites

Hmm. Well, in skyrim a similar problem could be fixed by interacting with a furniture marker, which would force you into another animation and restore your character to normal. Have you tried using a cooking pot or something to see if that helps?

 

It won't help to solve your root issue, but if it works, it will at least help narrow down the problem.

Link to comment
Share on other sites

Thanks for your reply, I just tested your suggestion and no luck :wallbash:

 

Its just strange because I have all other movement active including sprinting (only in a straight line) just no bloody movement!!! I think I'm going to have to rethink the animation part for now....which is a shame.

 

I hope someone else knows whats going on.

Edited by blazeda59
Link to comment
Share on other sites

Try hitting the "v" key a couple of times to switch between 1st and 3rd person.

 

Edit: Otherwise, add another idle property, "RaiderIdleStop", and play it after the last idle.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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