Difference between revisions of "0929"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{OpCode | ini = 0929=5,%1x% %2o% %3h% %4d% %5h% | description = Initiates the external script when near the object | p1 = External script | p2 = DFF mode...)
 
 
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0929=5,%1x% %2o% %3h% %4d% %5h%
+
| games      = {{Icon|SA}}
| description = Initiates the external script when near the object
+
| command    = ALLOCATE_STREAMED_SCRIPT_TO_OBJECT
| p1          = [[External script]]
+
| description = Initiates the streamed script when near the object
| p2          = [[DFF]] model ID or name as defined at the beginning of the <code>main.scm</code>
+
| syntax1    = 0929: init_external_script_trigger [''int1''] with_object_model [''int2''] priority [''int3''] radius [''flt''] type [''int4'']
| p3          = Integer (priority)
+
| p1t        = [''int1'']
| p4          = Float (radius)
+
| p1d        = [[Streamed Script|Streamed script id]]
| p5          = Integer (type)
+
| p2t        = [''int2'']
| game        = San Andreas
+
| p2d        = Model index
 +
| p3t        = [''int3'']
 +
| p3d        = Priority
 +
| p4t        = [''flt'']
 +
| p4d        = Radius
 +
| p5t        = [''int4'']
 +
| p5d        = Type
 
| native      = [[ALLOCATE_SCRIPT_TO_OBJECT]]
 
| native      = [[ALLOCATE_SCRIPT_TO_OBJECT]]
 
}}
 
}}
This initiates an external script if the player is near the object. The object has to be defined in the <code>[[object.dat]]</code> file. You do not have to load the script or the object for this opcode to work. Parameter 3 is the priority of the script over other objects that may also be in the area. Parameter 4 is the distance the player need to be in order to initiate the script.
 
  
==Keywords==
+
This opcode initiates the streamed script if the player is within the radius of the object model. The object has to be defined in the <code>[[object.dat]]</code> file. You do not have to load the script or the object for this opcode to work. The priority is the priority of the script over other objects that may also be in the area.
initiate, activate, external, script, object
+
 
 +
== Keywords ==
 +
initiate, activate, external, streamed, script, object

Latest revision as of 00:28, 3 December 2016

San Andreas ALLOCATE_STREAMED_SCRIPT_TO_OBJECT


Description
Initiates the streamed script when near the object
Syntax
0929: init_external_script_trigger [int1] with_object_model [int2] priority [int3] radius [flt] type [int4]
Parameter
[int1]
Streamed script id
[int2]
Model index
[int3]
Priority
[flt]
Radius
[int4]
Type
Native analog
ALLOCATE_SCRIPT_TO_OBJECT

This opcode initiates the streamed script if the player is within the radius of the object model. The object has to be defined in the object.dat file. You do not have to load the script or the object for this opcode to work. The priority is the priority of the script over other objects that may also be in the area.

Keywords

initiate, activate, external, streamed, script, object