playMaker

Author Topic: Cannot convert fsmvector3 unityengine vector3 [SOLVED]  (Read 490 times)

Phuzz

  • Junior Playmaker
  • **
  • Posts: 95
    • View Profile
    • Bzilla Games
Cannot convert fsmvector3 unityengine vector3 [SOLVED]
« 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
« Last Edit: February 11, 2016, 12:50:46 AM by Phuzz »
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

mdotstrange

  • Hero Member
  • *****
  • Posts: 549
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Cannot convert fsmvector3 unityengine vector3
« Reply #1 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
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Phuzz

  • Junior Playmaker
  • **
  • Posts: 95
    • View Profile
    • Bzilla Games
Re: Cannot convert fsmvector3 unityengine vector3
« Reply #2 on: February 10, 2016, 11:20:08 AM »
Thank you :) Works like a charm.
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"