spawn in circle
kaisarvrettos
Member Posts: 4
How can I force actors to be spawned in a rounded (circle) area?
Comments
Hi @kaisarvrettos This sample gamefile should help you, with an attribute to adjust the radius of the circle if needed.
And welcome to the Forums too. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
cos( game.RandAngle )* game.Radius
sin( game.RandAngle )* game.Radius
to
cos( game.RandAngle )* random (0,game.Radius)
sin( game.RandAngle )* random (0,game.Radius)
Thanks so much....these forums are amazing! Solved my problem and stopped me pulling my hair out! Thanks for sharing your wisdom