0929

From GTAModding
Jump to: navigation, 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