spawn in circle

How can I force actors to be spawned in a rounded (circle) area?

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited October 2013

    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

  • SocksSocks London, UK.Member Posts: 12,822
    edited October 2013
    How can I force actors to be spawned in a rounded (circle) area?
    If you want the spawned objects to fill a circular area (rather than form a circular perimeter) - get @gyroscope's file and change:

    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)
  • kaisarvrettoskaisarvrettos Member Posts: 4
    Thanks a lot. This exactly what i wanted.
  • RedRoboRedRobo Member, PRO Posts: 682

    @gyroscope said:
    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. :-)

    Thanks so much....these forums are amazing! Solved my problem and stopped me pulling my hair out! Thanks for sharing your wisdom :)

Sign In or Register to comment.