GetXYOnRightOfPlayer function?
#1

I need a function which gets the position at the right-top edge of the player's camera. Something like this:



I've tried using GetXYInFrontOfPlayer and adding 5.0 to the Y position but it's not always good.
Reply
#2

Bump! Basically, I need the side position of a player. Can somebody help me?
Reply
#3

Well it can't be done based on camera because of the widescreen option - there's no way to detect it. Resolutions come in to play also.

That angle is 45 degrees to the right, so just use the GetXYInFrontOfPlayer as if the player's angle is GetPlayerFacingAngle()+45.

EDIT: Okay, I misunderstood the question. What does the first player have to do with it though? Just edit GetXYInFrontOfPlayer and add 90 to the angle.
Reply
#4

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)