AR/getCameraInterior

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

يعود وهمية للكاميرا المحلية ( مستقلة من الداخل من لاعب محلي) .

Procedural

Syntax

Click to collapse [-]
Server
int getCameraInterior ( player thePlayer )

OOP Syntax Help! I don't understand this!

Method: player:getCameraInterior(...)
Variable: .cameraInterior
Counterpart: setCameraInterior


الحجج المطلوبة

' thePlayer '  : اللاعب الذي كنت ترغب في الحصول الداخلية الكاميرا.

Click to collapse [-]
Client
int getCameraInterior ( )

OOP Syntax Help! I don't understand this!

Method: Camera.getInterior(...)
Variable: .interior
Counterpart: setCameraInterior


بإرجاع ' ' صحيح ' ' مشيرا إلى الداخل الكاميرا، ' ' كاذبة ' ' إذا كانت الوسيطة غير صالحة.

مثال

Click to collapse [-]
Server
function outputCameraInterior ( player, command )
	local interior = getCameraInterior ( player )
	outputChatBox ( "الكميرا ي عالم وهمي " .. interior, player, 255, 255, 0 )
end
addCommandHandler ( "camera", outputCameraInterior )


Object-oriented

Syntax

Click to collapse [-]
Server
int player:getCameraInterior ( )
-- or
int player.cameraInterior -- للحصول على قيمة وهمية الكاميرا
player.cameraInterior = int someValue -- لتعيين قيمة الوهمية الكاميرا
Click to collapse [-]
Client
int Camera.getInterior ( )

بإرجاع ' ' صحيح ' ' مشيرا إلى الداخل الكاميرا، ' ' كاذبة ' ' إذا كانت الوسيطة غير صالحة.

مثال

Click to collapse [-]
Client
function outputCameraInterior ( command )
	local interior = Camera.getInterior ( )
	outputChatBox ( "The camera is in the interior " .. interior, localPlayer, 255, 255, 0 )
end
addCommandHandler ( "camera", outputCameraInterior )

See Also