BeginObjectSelecting
attention
La fonctionnalité de type fonction a été ajoutée dans la version omp v1.1.0.2612 et ne fonctionne pas avec les versions antérieures !
Description
Display the cursor and allow the player to select an object. OnPlayerSelectObject is called when the player selects an object.
| Name | Description |
|---|---|
| playerid | The ID of the player that should be able to select the object |
Returns
This function does not return any specific values.
Examples
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/select", true))
{
BeginObjectSelecting(playerid);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Please select the object you'd like to edit!");
return 1;
}
return 0;
}
Related Functions
- CreateObject: Create an object.
- DestroyObject: Destroy an object.
- MoveObject: Move an object.
- BeginObjectEditing: Edit an object.
- BeginPlayerObjectEditing: Edit an object.
- EditAttachedObject: Edit an attached object.
- EndObjectEditing: Cancel the edition of an object.
Related Callbacks
- OnPlayerSelectObject: Called when a player selected an object.