Jump to content

Home

Placeable Animation State


Silveredge9

Recommended Posts

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));
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...