Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: stvbabb on April 24, 2018, 12:19:27 PM

Title: Help With Simple Orbit Action
Post by: stvbabb 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
Title: Re: Help With Simple Orbit Action
Post by: tcmeric 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.
Title: Re: Help With Simple Orbit Action
Post by: stvbabb 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.
Title: Re: Help With Simple Orbit Action
Post by: tcmeric on April 25, 2018, 07:57:38 AM
No worries. Post it and I will give it a look over.  :)
Title: Re: Help With Simple Orbit Action
Post by: stvbabb on April 25, 2018, 01:39:04 PM
Okay, there is the correct action I made with the Action Wizard.