Playmaker Forum
PlayMaker News => General Discussion => Topic started by: grimmy on April 28, 2014, 09:57:14 AM
-
I would have thought it would be:
pickUpManagerFSM.FsmVariables.SetFsmVector3("LocationOfPickup").Value = position;
But that don't work.
Any ideas?
Thanks ! :)
-
using UnityEngine;
using System.Collections;
using HutongGames.PlayMaker;
public class NewBehaviourScript : MonoBehaviour {
public PlayMakerFSM TheFSM;
public float myVariable = 52.5f;
void Update () {
FsmFloat test = TheFSM.FsmVariables.GetFsmFloat("test").Value = myVariable;
}
}
This works.
Further info:
https://hutonggames.fogbugz.com/default.asp?W329
-
This does not answer the question that was asked.
This sets a FLOAT not a VECTOR3.
-
Hi.
You can do the same for a vector 3 and other variable types.
It just shows the way you set it up.