SetCameraInterior: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Client function}} Sets the interior of the local camera. Only the interior of the camera is changed, the local player stays in the interior he was in. ==Syntax== <syntaxhighlight lang="lua"> i...)
 
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{Server client function}}
Sets the interior of the local camera. Only the interior of the camera is changed, the local player stays in the interior he was in.
Sets the interior of the local camera. Only the interior of the camera is changed, the local player stays in the interior he was in.


==Syntax==
==Syntax==
<section name="Server" class="server" show="true">
<syntaxhighlight lang="lua">
int setCameraInterior ( player thePlayer, int interior )
</syntaxhighlight>
===Required Arguments===
*'''thePlayer:''' the player whose camera interior will be set.
*'''interior:''' the interior to place the camera in.
</section>
<section name="Client" class="client" show="true">
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
int setCameraInterior ( int interior )
int setCameraInterior ( int interior )
Line 10: Line 21:
===Required Arguments===
===Required Arguments===
*'''interior:''' the interior to place the camera in.
*'''interior:''' the interior to place the camera in.
</section>


===Returns===
===Returns===
Returns '''interior'''.
Returns ''true'' if the camera's interior was changed successfully, ''false'' otherwise.


==Example==
==Example==

Revision as of 05:35, 16 March 2008

Sets the interior of the local camera. Only the interior of the camera is changed, the local player stays in the interior he was in.

Syntax

Click to collapse [-]
Server
int setCameraInterior ( player thePlayer, int interior )

Required Arguments

  • thePlayer: the player whose camera interior will be set.
  • interior: the interior to place the camera in.
Click to collapse [-]
Client
int setCameraInterior ( int interior )

Required Arguments

  • interior: the interior to place the camera in.

Returns

Returns true if the camera's interior was changed successfully, false otherwise.

Example

See Also