Interior::getInteriorAtCoordsWithType: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Returns the interior ID representing the requested interior at that location (if found?). The supplied interior string is not the same as the one used to load the interior.<br><br>Use: INTERIOR::UNPIN_INTERIOR(INTERIOR::GET_INTERIOR_AT_COORDS_WITH_TYPE(x, y, z, interior))<br><br>Interior types include: 'V_Michael', 'V_Franklins', 'V_Franklinshouse', etc.. you can find them in the scripts.<br><br>Not a very useful native as you could just use GET_INTERIOR_AT_COORDS instead and get the same result, without even having to specify the interior type.
Returns the interior ID representing the requested interior at that location (if found?). The supplied interior string is not the same as the one used to load the interior.<br><br>Use: INTERIOR::UNPIN_INTERIOR(INTERIOR::GET_INTERIOR_AT_COORDS_WITH_TYPE(x, y, z, interior))<br><br>Interior types include: 'V_Michael', 'V_Franklins', 'V_Franklinshouse', etc.. you can find them in the scripts.<br><br>Not a very useful native as you could just use GET_INTERIOR_AT_COORDS instead and get the same result, without even having to specify the interior type.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">interior.getInteriorAtCoordsWithType(x, y, z, interiorType);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.interior.getInteriorAtCoordsWithType(x, y, z, interiorType);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''x:''' float
*'''x:''' float
Line 11: Line 11:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Interior_function_c}}
{{Interior_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:27, 6 May 2017

Returns the interior ID representing the requested interior at that location (if found?). The supplied interior string is not the same as the one used to load the interior.

Use: INTERIOR::UNPIN_INTERIOR(INTERIOR::GET_INTERIOR_AT_COORDS_WITH_TYPE(x, y, z, interior))

Interior types include: 'V_Michael', 'V_Franklins', 'V_Franklinshouse', etc.. you can find them in the scripts.

Not a very useful native as you could just use GET_INTERIOR_AT_COORDS instead and get the same result, without even having to specify the interior type.

Syntax

mp.game.interior.getInteriorAtCoordsWithType(x, y, z, interiorType);

Required Arguments

  • x: float
  • y: float
  • z: float
  • interiorType: String

Return value

  • int

Example

// todo

See also