OK here is what I am trying to do:
I have an AI entity that detects a player tagged object and makes a beeline for it.
I have a timer that makes AI entity stop chasing if the player decides to run away (and is faster) its a simple wait time transition if attack state hasn't transitioned in time allotted. What I would like to do is have the AI Entity go back to its starting location. It would be fairly simple to grab the starting vec3 and store it and use it to re position.. IF my combat system wasn't a constant running loop. In my system the set variable may update numerous times if the player and AI battle, run, battle, run.. etc.
Now I know I could make another variable and use it to let vec3 storing state to know if its safe to overwrite or not but this would be so much simpler if you could lock/unlock a variable via an action. This would allow me to simply lock the vec3 value at state exit and unlock it after combat ends or timer expires.
Anyone know of such a thing in Playmaker without having to write my own?
I will gladly accept completely new ideas on how to do this as well.