Difference between revisions of "0615"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{OpCode | ini = 0615=1,%1d% | description = Defines the beginning of a sequence pack | p1 = Sequence pack handle | game = San Andreas | native = [[OPEN_SEQUEN...)
 
Line 6: Line 6:
 
| native      = [[OPEN_SEQUENCE_TASK]]
 
| native      = [[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 ith the pack.
+
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==
 
==Example==
This example shows how a task can be assigned to a character through the sequence pack.
+
This example shows how tasks can be assigned to a character through the sequence pack. Using [[009A#Example|this example]], add the following code right after creating the ped.
  0615: define_AS_pack_begin 0@
+
<source lang="scm">
  [[05BA]]: AS_actor -1 move_mouth 1 ms  
+
0615: define_AS_pack_begin 1@
  [[05B9]]: AS_actor -1 stay_idle 1 ms lockY 1 lockF 0 time -1
+
05D3: AS_actor -1 goto_point 0.0 0.0 0.0 mode 6 -1 ms
  [[0616]]: define_AS_pack_end 0@
+
04EB: AS_actor -1 crouch 1  
  [[0618]]: assign_actor 1@ to_AS_pack 0@
+
0638: AS_actor -1 stay_put 1
  [[061B]]: remove_references_to_AS_pack 0@
+
0616: define_AS_pack_end 1@
 +
0618: assign_actor 0@ to_AS_pack 1@
 +
061B: remove_references_to_AS_pack 1@
 +
</source>
  
 
==Keywords==
 
==Keywords==
 
action, sequence, task
 
action, sequence, task

Revision as of 16:30, 6 August 2009

{{{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