petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 3, 2005 15:57:32 GMT -5
Okiedokie, this isn't meant for anything to be real hugh, but I thought about it, and I fuigured it would be so much easier, if you could get the player direction from the in game compass.
I noticed in the FFXI Player Library there are Player_ Functions
Why not add a Player_GetDirection()?
Eh? I think that would be pretty darn spiffy!
lemme know if it's a good idea... If you would of course.
|
|
|
Post by TinyTerror on Nov 3, 2005 15:59:51 GMT -5
player_GetHeading( ) player_GetHeadingRads( )
Gets the heading of the player. Heading is the number of degrees or radians a player is facing away from north. East is 90 degrees, south is 180, west is 270, and north is 0 degrees. The Rads version of this function returns the same result, but in radians form. If you don't know how to use radians, use the normal form. The results returned by this function are completely independent of the direction the camera is pointing.
Example usage: Heading=FFXI.player_GetHeading( )
HeadingRads=FFXI.player_GetHeadingRads( )
Arguments: None.
Return values: Returns a number containing the heading of the player in relation to compass north.
On error, 0 is returned and an error is generated.
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 3, 2005 16:02:14 GMT -5
Oh si si~ So it is implemented already! Thanks for that tiny!
(Where is the link for your initial script for your <pos> thing? I looked all over and I cant find it.....)
|
|
|
Post by TinyTerror on Nov 3, 2005 16:03:01 GMT -5
I never made one. Thats why you cant find it
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 3, 2005 16:03:45 GMT -5
Not that one with your Mule or something? It says a textobject in the top? I remember that post....
|
|
|
Post by TinyTerror on Nov 3, 2005 16:04:56 GMT -5
Ohhh, that. Its PlayerStats.lua in the /lunar/scripts folder.
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 3, 2005 18:12:16 GMT -5
Found the post I was looking for, clicked on the link, and it's dead. Could you post the script for that tiny?
this was the quote:
|
|
|
Post by TinyTerror on Nov 3, 2005 22:46:38 GMT -5
Are you just not listening to me? Go to where you installed lunar. Go into the lunar directory, then the scripts directory. Playerstats.lua is there.
|
|
petar113507
Full Member
Damn Straight. I Am the king of waffelagia.
Posts: 166
|
Post by petar113507 on Nov 3, 2005 23:09:36 GMT -5
OOps. I didnt think you meant on the actual drive of the computer. I was looking around these forums for the post.... ;D
|
|
|
Post by deathravin on Dec 27, 2005 21:30:37 GMT -5
Is this still working for ya?
My FFXI.Player_GetXPos(), YPos, ZPos all say 0 and my FFXI.Player_GetHeading() is always 90
|
|
|
Post by TinyTerror on Dec 27, 2005 22:16:14 GMT -5
The memlocs might be a bit funky since the last update(s).
|
|