warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
HasPlayerObjectCameraCollision
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Checks if a player-object has camera collision enabled. (SetPlayerObjectNoCameraCollision)
Name | Description |
---|---|
playerid | The ID of the player. |
objectid | The ID of the object to check. |
Returns
true
- Player-object camera collision is enable.
false
- Player-object camera collision is disable.
Examples
if (HasPlayerObjectCameraCollision(playerid, playerobjectid))
{
printf("Player: %d Object: %d Camera collision: enable", playerid, playerobjectid);
}
else
{
printf("Player: %d Object: %d Camera collision: disable", playerid, playerobjectid);
}
Related Functions
- SetPlayerObjectNoCameraCollision: Disable collisions between players' cameras and the specified object.
- HasObjectCameraCollision: Checks if an object has camera collision enabled.