SET STATE OF CLOSEST DOOR OF TYPE

From GTAMods Wiki
Revision as of 00:47, 18 February 2011 by Impediment (talk | contribs) (Created page with '{{Native |np=6 |p1t=Integer |p1d=DoorTypeHash |p2t=Float |p2d=x-coordinate |p3t=Float |p3d=y-coordinate |p4t=Float |p4d=z-coordinate |p5t=Boolean |p5d=(0=open/1=close) |p6t=Float…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
SET_STATE_OF_CLOSEST_DOOR_OF_TYPE
Number of parameters: 6
Parameter #TypeDescription
1.IntegerDoorTypeHash
2.Floatx-coordinate
3.Floaty-coordinate
4.Floatz-coordinate
5.Boolean(0=open/1=close)
6.FloatUnknown (usually 0)
Return value:
TypeDescription
None

This function opens and closes doors to interior buildings.

NOTE: Doors appear to reset when player leaves area, so must be used again when player is near the door; only works when player is in the area of the door.

You may need to terminate the script named "ambjimslocks.sco". It possibly keeps all doors closed. That's where a lot of the below list of door types came from. (this script may only be in the episodic content.


You can find the door types in the SCO scripts. This function will have the hash (0x10974b70). You can cut and paste to Notepad in order to use the Find feature.


Known Door Types:
0xa96f0f0f // GRACIE KIDNAPPING SAFEHOUSE
0xf8006406
0xdc1bac55
0xf6754b91
0x820550a0 // ROMANS APARTMENT DOOR
0x1686e847
0xe041fb8a
0x959bf7cd
0x301f2ce5
0x171bd4fb
0x571ae7dd // LC BANK DOOR
0x7b3b301d // LC BANK DOOR
0xe64cf26a
0x33a00d13
0x43af35c4
0xcdc2ca01
0x3e908284
0xf228eaa2
0x9ee94424 // CHINESE RESTUARANT
0xefef1eb5 // CHINESE RESTUARANT
0x19056e42
0xf5e06b2
0x33a00d13
0xf2b3381d
0xed9f86c6
0x1d0e65a3
0x294ef961
0x2ff750a6
0x7ea03976
0xf979408
0x3da14691
0xabbb242f
0x4d0d7d17
0x21c6a68a
0xb7bda30e
0xf8c61ce0
0xfe8296eb