playMaker

Author Topic: Help With Simple Orbit Action  (Read 1634 times)

stvbabb

  • Junior Playmaker
  • **
  • Posts: 66
Help With Simple Orbit Action
« on: April 24, 2018, 12:19:27 PM »
Hello,

I'm sure this already exists, but I want to get some practice writing custom actions. At this point with ecosystem it seems like it would be hard to actually find a new useful action to write, but I'd still like to learn a bit! I'm getting a NullReferenceException on my little orbit script. Line 49 is giving me trouble.

If you can give me a pointer or two that would be great. Thanks! :)

Thanks,
Steve

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Help With Simple Orbit Action
« Reply #1 on: April 25, 2018, 12:37:44 AM »
Hi, I cleaned up the syntax a little but, added a null reference exception check on start. Tested and it seems to be working fine for me. The reverse rotation doesnt work however.

PS, this is not written as a playmaker action, but as a monodevelop script. It can however easily be changed to a playmaker script.

stvbabb

  • Junior Playmaker
  • **
  • Posts: 66
Re: Help With Simple Orbit Action
« Reply #2 on: April 25, 2018, 06:49:45 AM »
Thanks for that! But now I'm seeing the original mono behavior I wrote! How embarassing... I then converted that to a playmaker action using the custom action wizard utility, but then posted the original monobehavior.... Damn. I'll have to post the actual action with the error that I was getting later this evening.

Sorry for the confusion.
« Last Edit: April 25, 2018, 06:53:36 AM by stvbabb »

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Help With Simple Orbit Action
« Reply #3 on: April 25, 2018, 07:57:38 AM »
No worries. Post it and I will give it a look over.  :)

stvbabb

  • Junior Playmaker
  • **
  • Posts: 66
Re: Help With Simple Orbit Action
« Reply #4 on: April 25, 2018, 01:39:04 PM »
Okay, there is the correct action I made with the Action Wizard.