HU/getCameraClip: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client function hu}} __NOTOC__ {{New feature/item|3.0141|1.4.1|6949|This function checks if the camera will "collide" with any objects or vehicles in its way. Read more ab...")
 
No edit summary
Line 1: Line 1:
{{Client function hu}}  
{{Client function hu}}  
__NOTOC__  
__NOTOC__  
{{New feature/item|3.0141|1.4.1|6949|This function checks if the camera will "collide" with any objects or vehicles in its way. Read more about this [[setCameraClip|here]].}}
{{New feature/item|3.0141|1.4.1|6949|Ez a function ellenőrzi, hogy a kamera "ütközik-e" bármilyen tárgyal vagy járművel. További információkért [[setCameraClip|here]].}}


==Syzintaxis==  
==Syzintaxis==  

Revision as of 13:54, 13 August 2018

Ez a function ellenőrzi, hogy a kamera "ütközik-e" bármilyen tárgyal vagy járművel. További információkért here.

Syzintaxis

bool, bool getCameraClip() 

OOP Syntax Help! I don't understand this!

Method: Camera.getClip(...)
Counterpart: setCameraClip


Visszatérési érték

  • objects: if you want the camera to clip on objects.
  • vehicles: if you want the camera to clip on vehicles.

Példa

Ez a function a klip állapotát ellenőrzi.

function checkClipStatus()
  local obj, veh = Camera.getClip()
  outputChatBox ("Your camera can" .. (veh and "" or "not") .. "see the vehicle interior at the moment!",255,0,0,false)
  outputChatBox ("Your camera can" .. (obj and "" or "not") .. "collide with objects at the moment!",255,0,0,false)
end
addEventHandler("clipstatus",checkClipStatus)

Lásd még

Fordította

  • Surge