GetCameraInterior: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Server client function}}
Returns the interior of the local camera (independent of the interior of the local player).
Returns the interior of the local camera (independent of the interior of the local player).


==Syntax==
==Syntax==
<section name="Server" class="server" show="true">
<syntaxhighlight lang="lua">
int getCameraInterior ( player thePlayer )
</syntaxhighlight>
===Required Arguments===
'''thePlayer''': the player whose camera interior you want to check.
</section>
<section name="Client" class="client" show="true">
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
int getCameraInterior ( )
int getCameraInterior ( )
Line 10: Line 20:
===Required Arguments===
===Required Arguments===
''None''
''None''
</section>


===Returns===
===Returns===
Returns the number of the interior the local camera is in.
Returns an ''integer'' indicating the camera's interior, ''false'' if the argument is invalid.


==Example==
==Example==


==See Also==
==See Also==
{{Client_camera_functions}}
{{Camera functions}}

Revision as of 05:32, 16 March 2008

Returns the interior of the local camera (independent of the interior of the local player).

Syntax

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

Required Arguments

thePlayer: the player whose camera interior you want to check.

Click to collapse [-]
Client
int getCameraInterior ( )

Required Arguments

None

Returns

Returns an integer indicating the camera's interior, false if the argument is invalid.

Example

See Also