Forum rules - please read before posting.

Player: Switch

edited June 2014 in Engine development
Hey All,

I'm having a nightmare with the player:switch options. My player switches but after that he doesn't say anything. Any ideas?

I am getting this error, though:

NullReferenceException: Object reference not set to an instance of an object
ActionPlayerSwitch.Run () (at Assets/AdventureCreator/Scripts/Actions/ActionPlayerSwitch.cs:150)
AC.ActionList+<RunAction>c__Iterator1.MoveNext () (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:147)
UnityEngine.MonoBehaviour:StartCoroutine(String, Object)
AC.ActionList:ProcessAction(Int32) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:127)
AC.<RunAction>c__Iterator1:MoveNext() (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:176)


Thanks for any help!

Kris

Comments

  • That error means there's no object in the scene with a "Player" tag.  Have you put the Player tag on each Player prefab?
  • Sorry its taken so long to write this but thanks for your help, that did sort it out no problem!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.