playMaker

Author Topic: Transform does not exist in the current context.  (Read 1262 times)

Seiryu33

  • Full Member
  • ***
  • Posts: 135
Transform does not exist in the current context.
« on: December 31, 2021, 10:15:38 PM »
So I'm currently trying to create a compass that always points to the current objective. I script I wrote for it works as a C# script, but when i try to use it as Playmaker action it returns an error of "transform does not exist in the current context." See the attached screenshot. It works perfectly fine otherwise. I want it update which the current method doesn't allow for. How do I fix this issue in Playmaker?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Transform does not exist in the current context.
« Reply #1 on: January 01, 2022, 01:33:26 PM »
Hi.
The image is to low resolution to read, can you make a better image or you can use Paste bin and place a link to it in your post

Seiryu33

  • Full Member
  • ***
  • Posts: 135
Re: Transform does not exist in the current context.
« Reply #2 on: January 01, 2022, 06:33:53 PM »
I wasn't sure if it would attach at this size. But this is the problem in a nutshell. For some reason, it only returns this error as an FSM.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Transform does not exist in the current context.
« Reply #3 on: January 01, 2022, 09:55:05 PM »
Hi.
There is no object set.

Take a look at the Set Position action for example.

Seiryu33

  • Full Member
  • ***
  • Posts: 135
Re: Transform does not exist in the current context.
« Reply #4 on: February 14, 2022, 09:06:37 PM »
Reviving this because I managed to get it to work, but now i have a new problem that ties into this: The Compass won't point down under any circumstance. It'll point up, left and right, but not down. What am I missing in my code?