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:
31
_module/nss/fr_crystal_on.nss
Normal file
31
_module/nss/fr_crystal_on.nss
Normal file
@@ -0,0 +1,31 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
int nIdx = 0;
|
||||
object oTarget = GetObjectByTag("fr_crystal_glow",nIdx);
|
||||
float fSpeed = 0.5;
|
||||
float FDur = 50.0;
|
||||
object oArea = GetObjectByTag("fr_iwd_i_xlair");
|
||||
|
||||
if(GetIsPC(oPC) == TRUE)
|
||||
{
|
||||
if (GetLocalInt(OBJECT_SELF,"nDone")!=1)
|
||||
{
|
||||
while (GetIsObjectValid(oTarget))
|
||||
{
|
||||
AssignCommand(oTarget, ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE, fSpeed, FDur));
|
||||
SetPlaceableIllumination(oTarget, TRUE);
|
||||
|
||||
nIdx++;
|
||||
oTarget = GetObjectByTag("fr_crystal_glow",nIdx);
|
||||
}
|
||||
SetLocalInt(OBJECT_SELF,"nDone",1);
|
||||
}
|
||||
|
||||
if (GetLocalInt(OBJECT_SELF,"nDone")==1)
|
||||
{
|
||||
RecomputeStaticLighting(oArea);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user