SelectObject
Description:
Function SelectObject display the cursor and allow the player to select an object. OnPlayerSelectObject is called when the player selects an object.
Function SelectObject was added in 0.3e and will not work in earlier versions! |
Parameters:
(playerid)
int | playerid | The ID of the player that should be able to select the object. |
Return Values:
This function does not return any specific values.
Examples:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/select", true)) { SelectObject(playerid); SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Please select the object you'd like to edit!"); return 1; } return 0; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- CreateObject: Create an object.
- DestroyObject: Destroy an object.
- MoveObject: Move an object.
- EditObject: Edit an object.
- EditAttachedObject: Edit an attached object.
- CancelEdit: Cancel the edition of an object.
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnPlayerSelectObject: Called when a player selected an object.