haroon 10 Posted August 27, 2009 Does anyone know how to make the sin and cos things with setpos? I am completely noob in this part...... All i wanted to do is here : man1 setpos [(getpos player select 0)+unknown,(getpos player select 1)+unknown,0] I have put some + values as well as - ones...but i noticed that the unit only spawns at a certain direction from the player,and NOT AROUND THE PLAYER. Eg..he will spawn only at the EAST of player's pos if + value is used in first getpos command. I know to make him spawn around the player , by using this : man1 setpos [(getpos player select 0)+(random _value+random - _value),(getpos player select 1)+(random _value+random - _value),0] But i wanted to know how to do this with the sin and cos thing...:rolleyes: Haroon1992.... Share this post Link to post Share on other sites
Väinämöinen 0 Posted August 27, 2009 Search is your friend: http://forums.bistudio.com/showthread.php?p=1390308#post1390308 Share this post Link to post Share on other sites