Added fancymapped Arcane Castle tileset
Added fancymapped Arcane Castle tileset. Updated doortypes, genericdoors, loadscreens & placeable 2DAs for NWNEE.
This commit is contained in:
9
Module/nss/auto_close_door.nss
Normal file
9
Module/nss/auto_close_door.nss
Normal file
@@ -0,0 +1,9 @@
|
||||
// Very simple script that closes the door 10.0 seconds after opening.
|
||||
// Place on the OnOpen event of the door.
|
||||
|
||||
// Created by Zunath on August 13, 2007
|
||||
|
||||
void main()
|
||||
{
|
||||
DelayCommand(20.0, ActionCloseDoor(OBJECT_SELF));
|
||||
}
|
25
Module/nss/lvl10_onenter.nss
Normal file
25
Module/nss/lvl10_onenter.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
//:: lvl10_onenter.nss
|
||||
|
||||
#include "spawn_functions"
|
||||
|
||||
void main()
|
||||
{
|
||||
// Spawn_OnAreaEnter() can take three arguments - the name of the heartbeat
|
||||
// script to execute, the heartbeat duration, and a delay for the first
|
||||
// heartbeat. They default to spawn_sample_hb, 6.0, and 0.0 respectively; as
|
||||
// if it were called like:
|
||||
// Spawn_OnAreaEnter( "spawn_sample_hb", 6.0, 0.0 );
|
||||
|
||||
if ( GetIsAreaAboveGround( OBJECT_SELF ) &&
|
||||
! GetIsAreaNatural( OBJECT_SELF ) )
|
||||
{
|
||||
// Indoors - no delay on the first HB
|
||||
Spawn_OnAreaEnter( "spawn_sample_hb", 10.0 );
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
// Outdoors or underground - do a 3 second delay on the first HB
|
||||
Spawn_OnAreaEnter( "spawn_sample_hb", 10.0, 3.0 );
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user