GetObjectDrawDistance
คำเตือน
ฟังก์ชันนี้ถูกเพิ่มใน omp v1.1.0.2612 และจะไม่ทำงานในเวอร์ชันก่อนหน้า!
Description
Get the draw distance of an object.
| Name | Description |
|---|---|
| objectid | The ID of the object to get the draw distance of |
Returns
Returns the draw distance as float.
Examples
new objectid = CreateObject(3335, 672.53485, -656.11023, 15.26560, 3.00000, 0.00000, 0.00000, 100.0);
new Float:drawDistance = GetObjectDrawDistance(objectid);
// drawDistance = 100.0
Related Functions
- GetPlayerObjectDrawDistance: Get the draw distance of a player-object.