0929

From GTAMods Wiki
Revision as of 00:28, 3 December 2016 by Spaceeinstein (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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