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. :)
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));
}
Yup, I managed to get it to work. Thanks for the help. :)