Jump to content
Sign in to follow this  
haroon

Using sin and cos in Setpos ?????How to do that???

Recommended Posts

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×