Jump to content


Photo

My First Real Script


  • Please log in to reply
No replies to this topic

#1 gamer1224

gamer1224

    GMC Member

  • New Member
  • 641 posts

Posted 19 April 2007 - 02:11 AM

//Argument0 is the begin x
//Argument1 is the begin y
//Argument2 is the direction
//Argument3 is the distance
return instance_position(argument0+(argument3*(2/cos(degtorad(argument2)))),argument1-(argument3*(2/sin(degtorad(argument2))))

Well that my code to find if there is a instance in a direction and distance.I made a long time ago and wanted to post it.Beats me what it good for but i was bored. ^_^
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users