Aller au contenu principal

HasObjectCameraCollision

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​

Checks if an object has camera collision enabled. (SetObjectNoCameraCollision)

NameDescription
objectidThe 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);
}