Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Placeable Animation State

Page: 1 of 1
 Silveredge9
11-04-2006, 4:29 PM
#1
Is there a way to changes the animation state of a place able in a script? I need to know this because I want to script the process opening of the mysterious box place able, like in that ebon hawk quest.

Any help would be appreciated. :)
 stoffe
11-04-2006, 6:51 PM
#2
Is there a way to changes the animation state of a place able in a script? I need to know this because I want to script the process opening of the mysterious box place able, like in that ebon hawk quest.

Any help would be appreciated. :)

You should be able to use the PlayAnimation() scripting command assigned to the placeable for this, and use any of the ANIMATION_PLACEABLE_ACTIVATE, ANIMATION_PLACEABLE_DEACTIVATE, ANIMATION_PLACEABLE_OPEN or ANIMATION_PLACEABLE_CLOSE animation numbers. I don't know which of them is used for the Rakatan prison box activation, probably the "Activate" one I'd guess. :)

Like:

void main() {
object oBox = GetObjectByTag("TagOfTheBoxHere");
AssignCommand(oBox, PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE));
}
 Silveredge9
11-04-2006, 8:21 PM
#3
Yup, I managed to get it to work. Thanks for the help. :)
Page: 1 of 1