generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
22
_module/nss/wsm_sc_trapduse.nss
Normal file
22
_module/nss/wsm_sc_trapduse.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
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));
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user