Files
HeroesStone_PRC8/_module/nss/wsm_sc_trapduse.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

23 lines
658 B
Plaintext

void main()
{
//Get PC
object oPC = GetLastUsedBy();
//Get Trapdoor
object oDoor = GetObjectByTag("m243_to_m079");
//open trapdoor commands
//have the PC kneel down and act as if opening the trapdoor
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW, 0.7f));
//swing the door to open after a slight delay to allow for the PC's animation
DelayCommand(1.0f, ActionPlayAnimation(ANIMATION_PLACEABLE_OPEN));
//OPTIONAL- have the using PC call the state
//AssignCommand (oPC,SpeakString("Trapdoor Open"));
//start trapdoor conversation
AssignCommand (oPC,ActionStartConversation(oDoor));
}