SetObjectNoCameraCol
From SA-MP Wiki
Description:
Disable collisions between players' cameras and the specified object.
(objectid)
objectid | The ID of the object to disable camera collisions on. |
Return Values:
- 1: The function executed successfully.
- 0: The function failed to execute. The object specified does not exist.
Example Usage:
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.
- SetPlayerObjectNoCameraCol: Disables collisions between camera and player object.