Game Development Community

Two Sequences Affecting the Same Object with ResetOnCompletion set to 0

by Jacob S. · in Verve · 06/21/2010 (6:13 am) · 0 replies

Is there a set method to have two sequences affect the same object with ResetOnCompletion set to 0?

When I attempt to create the next sequence the Object is locked and cannot be moved, a bit of checking shows that the sequence is never exited but merely paused when the object is at the last node of sequence 1.

Edit: I have a divised method for doing this, I have it burried in a pause all method that works for me.

#note in the .getObject(0) the "0" maybe any number depending on how many groups you have in verve and how they are ordered.
//Get the Sequences Name
%sequence = (%controller.getObject(0)).getFieldValue("Label");
//Get the object used in the step
%object = %controller.getFieldValue(%step);
//Get the objects Position at the last Node
%position = %object.getTransform();
//Stop The sequence
%controller.stop();
//Set the object to the last nodes position
%object.setTransform(%position);