Playmaker Forum

Playmaker Help & Tips => Playmaker Help => Topic started by: Phuzz on February 10, 2016, 07:13:11 AM

Title: Cannot convert fsmvector3 unityengine vector3 [SOLVED]
Post by: Phuzz on February 10, 2016, 07:13:11 AM
Hello,

I am trying to apply the following line to a custom action im working on:

TileID.Value = (tilename.GetTileIdAtPosition (Position, LayerNumber));

ofcorse im using the variables:

FSMVector3 Position
FSMInt LayerNumber

I am getting an error cannot convert FSM.Vector3 to UnityEngine.Vector3

I am not a coder, just trying to copy actions and modify them, and so far has been working but i stuck at this one. any help? Thank you

I am using tk2dTilemap Class
Title: Re: Cannot convert fsmvector3 unityengine vector3
Post by: mdotstrange on February 10, 2016, 07:54:35 AM
Try adding .Value after your Playmaker variables and it should get rid of that error like Position.Value and LayerNumber.Value
Title: Re: Cannot convert fsmvector3 unityengine vector3
Post by: Phuzz on February 10, 2016, 11:20:08 AM
Thank you :) Works like a charm.