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.
HasObjectCameraCollision
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Checks if an object has camera collision enabled. (SetObjectNoCameraCollision)
Name | Description |
---|---|
objectid | The ID of the object to check. |
Returns
true
- Object camera collision is enable.
false
- Object camera collision is disable.
Examples
if (HasObjectCameraCollision(objectid))
{
printf("Object %d camera collision: enable", objectid);
}
else
{
printf("Object %d camera collision: disable", objectid);
}
Related Functions
- SetObjectNoCameraCollision: Disable collisions between players' cameras and the specified object.
- HasPlayerObjectCameraCollision: Checks if a player-object has camera collision enabled.