You get an object of type ActionSequence as a return parameter to the Script::addAction command of a script. An actionSequence object lets you alter properties of the action. The term 'sequence' has been chosen as you can add a sequence of start, stop, fade-in, fade-out, pause and continue events. By adding these events you create a mini movie or scene. As scripts can contain many sequences you can create some very complex acting for your characters.

Properties, Events and Methods

Name Type Description
custom MethodSets a custom event.
void custom(float time, VARIANT gin, VARIANT jam)
fadeIn MethodAdds a Fade-in event to the action-sequence.
void fadeIn(float time,float fadetime, float finalfadetime)
fadeOut MethodAdds a fade-out event to the action-sequence. At the end of a fade-out the action is paused
void fadeOut(float time, float fadetime)
goTo MethodAdds a GoTo event to the action-sequence.
void goTo(float eventtime as Float, float gototime)
pause MethodAdds a pause event to the sequence.
void pause(float time)
restart MethodAdds a restart event to the sequence.
void restart(float time)
start MethodAdds a start event to the sequence.
void start(float time)
stop MethodAdds a stop event to the sequence.
void stop(float time)
xfade MethodAdds a cross-fade event to the action-sequence.
void xfade( finalAction as actionSequence, float eventtime, float fadetime, float finalfadetime)
action PropertyReturns an instance of the actionFile this ActionSequence refers to.
BLENDMODE PropertySets or retrieves the blend mode.
blendVal PropertySets the blend percentage
events PropertyReturns an events collection class with all the event objects.
holdOnFinal PropertyIndicates if this action is held at the final frame or if the action is de-activated.
loopEnd PropertyFor a cropped and looped action, this sets the end point of the loop.
loopLength PropertySets or retrieves the total length of time taken to play a single loop.
loopStart PropertyFor a cropped and looped action, this sets the start point of the loop.
model PropertyGet the model instance this sequence refers to.
name PropertySets or retrieves the name of your sequence.
repeatCount PropertySets or retrieves the total number of times the action will be looped before it stops.
type PropertyReturns SQ_ACTION ( numerical value =0 )

 

©2000 arcticpigs. All rights reserved.
This is a draft version! The functionality of parts of the software are liable to change.