localPlayer: Difference between revisions

Jump to navigation Jump to search
no edit summary
m (Mex moved page LocalPlayer to localPlayer)
 
No edit summary
 
Line 8: Line 8:
|returnInfo = the local player object
|returnInfo = the local player object
|since=1.0.72
|since=1.0.72
|exampleJSCS = addCommandHandler("position", (command, text) =>
{
    if(!localClient.player)
    {
        message("You are not spawned.");
        return;
    }
    message('Your position is: ' + localPlayer.position.x + ' ' + localPlayer.position.y + ' ' + localPlayer.position.z);
});
}}
}}
7,072

edits

Navigation menu