GetPlayerXY

From Soldat Community Wiki
Revision as of 10:24, 15 August 2012 by Freeman (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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