View Full Version : random player position
I've searced the forums, but couldn't find answer to this:
How can I place my player to a random position on mission start? (SP)
How can I do it with a team?
Thanks in advance.
Set your placement radius of the players unit to what ever distance you want. (He will then be place randomly inside that radius centred on when the unit is in the editor).
Then is he is group leader just set any units grouped with him to be in formation and they will be moved to start the game in formation with him.
If he is not the group leader change the leaders placement radius and make sure he is set as in formation.
The placement radius can be found near the bottom when you add the unit to the mission.
Hehh, good idea, I would have never thought of that, I was thinking in scripts... :)
Can you avoid water with this approach?
EDIT: I found another solution: If I group my leader to markers, mission start will randomly choose and place me on either one of those markers. Great!!
cobra4v320
Aug 26 2010, 18:53
If you want random start positions and you do not want to end up in water you should try shkpos found here: http://forums.bistudio.com/showthread.php?t=89376
This is an awesome script it works great!
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.