Spawner switchover.
Spawner switch over. PnP Umberhulks & Stone Golems. A real search check in Level 10a - Small Cave. Respawning placeables in 10a - Umber Hulk Cave & 10a - Small Cave
This commit is contained in:
35
_module/nss/hidden_comp001.nss
Normal file
35
_module/nss/hidden_comp001.nss
Normal file
@@ -0,0 +1,35 @@
|
||||
//Put this script OnEnter
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
if (GetIsSkillSuccessful(oPC, SKILL_SEARCH, 25))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
object oTarget = GetObjectByTag("RA_PLC_SARC_PRE");
|
||||
|
||||
|
||||
if (!GetIsObjectValid(oTarget)) return;
|
||||
|
||||
|
||||
DelayCommand(0.1f, DestroyObject(oTarget, 0.0));
|
||||
|
||||
object oSpawn;
|
||||
location lTarget;
|
||||
oTarget = GetWaypointByTag("RA_PLC_SARCOP003");
|
||||
|
||||
lTarget = GetLocation(oTarget);
|
||||
|
||||
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "ra_plc_sarcop003", lTarget);
|
||||
|
||||
SendMessageToPC(oPC, "You have spotted a secret compartment on the sarcophagus.");
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user