0615

From GTAMods Wiki
Revision as of 16:30, 6 August 2009 by Spaceeinstein (talk | contribs)
Jump to navigation Jump to search

{{{games}}}


Description
Defines the beginning of a sequence pack
Syntax
{{{syntax1}}}
Parameter
Native analog
OPEN_SEQUENCE_TASK

This defines the beginning of a sequence pack. A sequence pack is a group of commands, usually tasks, between opcodes 0615 and 0616 that can be assigned to a character or multiple characters. The actor handle for tasks within the pack should be -1 if you want to your character to perform the task assigned with the pack.

Example

This example shows how tasks can be assigned to a character through the sequence pack. Using this example, add the following code right after creating the ped.

 0615: define_AS_pack_begin 1@
 05D3: AS_actor -1 goto_point 0.0 0.0 0.0 mode 6 -1 ms
 04EB: AS_actor -1 crouch 1 
 0638: AS_actor -1 stay_put 1
 0616: define_AS_pack_end 1@
 0618: assign_actor 0@ to_AS_pack 1@
 061B: remove_references_to_AS_pack 1@

Keywords

action, sequence, task