Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
29
_module/nss/jw_doglever_onof.nss
Normal file
29
_module/nss/jw_doglever_onof.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
void main()
|
||||
{
|
||||
object oObject;
|
||||
|
||||
|
||||
|
||||
if (GetLocalInt(OBJECT_SELF,"NW_L_AMION") != 1)
|
||||
{
|
||||
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
||||
|
||||
SetLocalInt(OBJECT_SELF,"NW_L_AMION",1);
|
||||
|
||||
oObject=GetObjectByTag("jw_under_door");
|
||||
AssignCommand(oObject,SetLocked(oObject,FALSE));
|
||||
AssignCommand(oObject,ActionOpenDoor(oObject));
|
||||
|
||||
// DelayCommand(10.0,AssignCommand(oObject,ActionCloseDoor(oObject)));
|
||||
//DelayCommand(10.5,AssignCommand(oObject,SetLocked(oObject,TRUE)));
|
||||
DelayCommand(10.5,PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE));
|
||||
|
||||
DelayCommand(10.5,SetLocalInt(OBJECT_SELF,"NW_L_AMION",0));
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user