playMaker

Author Topic: arraymaker casting error  (Read 1337 times)

mallenroh

  • Playmaker Newbie
  • *
  • Posts: 32
arraymaker casting error
« on: September 30, 2014, 05:22:57 PM »
Got another arraymaker question...
two objects, the player and the enemy,
one empty game object with a playmaker array list proxy script attached,
which is storing the enemy as a game object
i have a simple 2state fsm on the player, where on a key down,
it transitions to a state where it is using ArrayListGetClosestGameObject from the empty game object
with the proxy script attached.
i get the following error in the console, which just repeats itself, and wont exit the state


InvalidCastException: Cannot cast from source type to destination type.
HutongGames.PlayMaker.Actions.ArrayListGetClosestGameObject.DoFindClosestGo () (at Assets/PlayMaker ArrayMaker/Addons/Custom/GameObject/ArrayListGetClosestGameObject.cs:100)