Forum

> > CS2D > Scripts > Script request [image]
Forums overviewCS2D overview Scripts overviewLog in to reply

English Script request [image]

7 replies
To the start Previous 1 Next To the start

old Re: Script request [image]

Avo
User Off Offline

Quote
Check out Download section of site in my sign. There´s functions library (made by me) with function you need.

old Re: Script request [image]

Avo
User Off Offline

Quote
I mean this -> newLibrary.lua.
1
2
3
rotateToTarget = function(x1, y1, x2, y2)
	return -math.deg(math.atan2((y1 - y2), (x1 - x2)))
end
For example:
1
rotateToTarget(0,0,1,1)
returns 135
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview