GetPlayerXY

From Soldat Community Wiki
Jump to: navigation, search

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


External Links