Difference between revisions of "GetPlayerXY"
(Created page with "===From the Scripting Manual=== ''procedure GetPlayerXY(ID: byte; var X, Y: single);'' '''Parameter Info:''' ID (Byte): Player ID to return the coordinates of. X,Y (Si...") |
(No difference)
|
Latest revision as of 11:24, 15 August 2012
From the Scripting Manual
procedure GetPlayerXY(ID: byte; var X, Y: single); Parameter Info: ID (Byte): Player ID to return the coordinates of. X,Y (Single): Variable which will hold the players coordinates. Description: This function will return the current X,Y position of Player (ID).
Examples
var X,Y: single;
begin
GetPlayerXY(1,X,Y);
WriteLn('Player 1 X: '+floattostr(X)+' Y: '+floattostr(Y)); // X,Y will be 0,0 if player is not ingame