playMaker

Author Topic: Setting accuracy by random rotate  (Read 577 times)

Krauser1129

  • Playmaker Newbie
  • *
  • Posts: 22
Setting accuracy by random rotate
« on: September 19, 2020, 12:19:14 PM »
I'm having issues with this.
So far it's current angle at start is x -90 and Y 0.
Random float between -85 and -95, store as Xrandomrotate
Random float between -5 and 5, store as Yrandomrotate
Set Rotation to X = Xrandomrotate and Y = Yrandomrotate
Once I start moving, the rotation of the object changes with me so those values make the object always face that general direction.
Help?

Krauser1129

  • Playmaker Newbie
  • *
  • Posts: 22
Re: Setting accuracy by random rotate
« Reply #1 on: September 19, 2020, 12:24:52 PM »
I think I need to do something like "Get rotation of object Spawn Point" then Add Float of value "RandomRotate" and have "Random Rotate" be like from -5 to 5, right? I get confused when we go from positives to negatives.