Difference between revisions of "0566"

From GTAMods Wiki
Jump to navigation Jump to search
m
(interior 13)
 
Line 1: Line 1:
{{Icon|VC}} {{Icon|SA}} '''SET_OBJECT_AREA_VISIBLE'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}} {{Icon|SA}}
'''Description'''
+
| command    = SET_OBJECT_AREA_VISIBLE
: Sets the visibility of an object to the specified interior
+
| description = Sets the visibility of the object to the specified [[interior]]
'''Syntax'''
+
| syntax1    = 0566: object [''object handle''] set_interior [''int'']
: 0566: object [''object handle''] set_interior [''int'']
+
| syntax2    = 0566: link_object [''object handle''] to_interior [''int'']
: 0566: link_object [''object handle''] to_interior [''int'']
+
| p1t        = [''object handle'']
'''Parameter'''
+
| p1d        = The handle of the object
: [''object handle'']
+
| p2t        = [''int'']
:: The handle of the object
+
| p2d        = Interior number (default 13)
: [''int'']
+
}}
:: [[Interior]] number
 
  
This opcode sets the visibility of 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.
  
 
== Keywords ==
 
== Keywords ==
set, interior, link, object, visibility, visible
+
set, interior, link, object, visibility, visible, area
 
 
[[Category:OpCodes]]
 

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