Scripting/Server/Functions/SelectObject
Gives the player a mouse/touch cursor and markers on the nearby objects; the object he clicks arrives in onPlayerSelectObject. CancelEdit(player) (or player.CancelEdit()) closes the editor or the picker without an event; player.IsEditingObject() tells whether the editor is open.
Syntax
SelectObject(player)Arguments
- Player player
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "selectobject" )
{
SelectObject( player );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: Audio streams, object editor and object picker (v0.3)
Categories: Server functions | Audio streams, object editor and object picker (v0.3)