Difference between revisions of "0566"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with '{{OpCode | ini = 0566=2, %1d% %2d% | description = Links an object to the specified interior. | p1 = Object Handle | p2 = Interior Handle | game …')
 
(interior 13)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0566=2, %1d%  %2d%
+
| games      = {{Icon|VC}} {{Icon|SA}}
| description = Links an object to the specified interior.
+
| command    = SET_OBJECT_AREA_VISIBLE
| p1          = Object Handle
+
| description = Sets the visibility of the object to the specified [[interior]]
| p2          = Interior Handle
+
| syntax1    = 0566: object [''object handle''] set_interior [''int'']
| game        = [[Vice City]], [[San Andreas]]
+
| syntax2    = 0566: link_object [''object handle''] to_interior [''int'']
 +
| p1t        = [''object handle'']
 +
| p1d        = The handle of the object
 +
| p2t        = [''int'']
 +
| p2d        = Interior number (default 13)
 
}}
 
}}
  
This opcode links an object to the specified interior.
+
By default, objects created through [[0107]] or [[029B]] has their interior number set to 13, allowing it to be visible regardless of the [[04BB|current interior]]. This opcode allows you to change the object's interior number, allowing it to be visible in the specified interior.
  
==Sanny Builder Example==
+
== Keywords ==
<source lang="scm">0566: link_object $2703 to_interior 1</source>
+
set, interior, link, object, visibility, visible, area
 
 
==Keywords==
 
interior, link, object
 

Latest revision as of 07:19, 21 August 2016

Vice City San Andreas SET_OBJECT_AREA_VISIBLE


Description
Sets the visibility of the object to the specified interior
Syntax
0566: object [object handle] set_interior [int]
0566: link_object [object handle] to_interior [int]
Parameter
[object handle]
The handle of the object
[int]
Interior number (default 13)

By default, objects created through 0107 or 029B has their interior number set to 13, allowing it to be visible regardless of the current interior. This opcode allows you to change the object's interior number, allowing it to be visible in the specified interior.

Keywords

set, interior, link, object, visibility, visible, area