Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mallenroh on September 30, 2014, 05:22:57 PM

Title: arraymaker casting error
Post by: mallenroh 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)