SetObjectNoCameraCol

SetObjectNoCameraCol

Description:
Function SetObjectNoCameraCol disable collisions between players' cameras and the specified object.
This only works outside the map boundaries (past -3000/3000 units on the x and/or y axis).
Function SetObjectNoCameraCol was added in 0.3.7 and will not work in earlier versions!


Parameters:
(objectid)
int objectid The ID of the object to disable camera collisions on.


Return Values:
  • 1: The function was executed successfully.
  • 0: The function failed to execute. The object specified does not exist.


Examples:
public OnObjectMoved(objectid)
{
    new Float:objX, Float:objY, Float:objZ;
    GetObjectPos(objectid, objX, objY, objZ);
    if(objX >= 3000.0 || objY >= 3000.0 || objX <= -3000.0 || objY <= -3000.0)
    {
        SetObjectNoCameraCol(objectid);
    }
    return 1;
}


Related Functions
The following functions may be useful, as they are related to this function in one way or another.