முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

SetObjectNoCameraCollision

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Disable collisions between players' cameras and the specified object.

NameDescription
objectidThe ID of the object to disable camera collisions on.

Returns​

true - The function was executed successfully.

false - 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)
{
SetObjectNoCameraCollision(objectid);
}
return 1;
}

Notes​

குறிப்பு

This only works outside the map boundaries (past -3000/3000 units on the x and/or y axis).