generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
28
_module/nss/df_t1_deeppit.nss
Normal file
28
_module/nss/df_t1_deeppit.nss
Normal file
@@ -0,0 +1,28 @@
|
||||
void TrapPlayAnim(object oTrap)
|
||||
{
|
||||
AssignCommand(oTrap, PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE));
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
if(GetLocalInt(OBJECT_SELF,"TRP_TRIGGERED"))
|
||||
return;
|
||||
|
||||
SetLocalInt(OBJECT_SELF,"TRP_TRIGGERED",1);
|
||||
|
||||
|
||||
object oTrap;
|
||||
|
||||
if(GetLocalInt(OBJECT_SELF,"TRP_PLCBL_SHOW")==0)
|
||||
{
|
||||
location lPlcbl = GetLocalLocation(OBJECT_SELF,"TRP_PLCBL_LOC");
|
||||
SetLocalInt(OBJECT_SELF,"TRP_PLCBL_SHOW",1);
|
||||
oTrap = CreateObject(OBJECT_TYPE_PLACEABLE,"metalpitpcbl",lPlcbl);
|
||||
SetLocalObject(OBJECT_SELF,"TRP_PLCBL_OBJ",oTrap);
|
||||
}
|
||||
else
|
||||
oTrap = GetLocalObject(OBJECT_SELF,"TRP_PLCBL_OBJ");
|
||||
|
||||
AssignCommand(oTrap,DelayCommand(1.0,TrapPlayAnim(oTrap)));
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY,EffectAreaOfEffect(39),GetLocation(oTrap),HoursToSeconds(200));
|
||||
}
|
||||
Reference in New Issue
Block a user