Initial Upload
Initial Upload
This commit is contained in:
32
_module/nss/tb_portgorgon1.nss
Normal file
32
_module/nss/tb_portgorgon1.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastUsedBy();
|
||||
|
||||
if(!GetIsPC(oPC))
|
||||
{
|
||||
return;
|
||||
}
|
||||
object oTarget = oPC;
|
||||
int nInt = GetObjectType(oTarget);
|
||||
|
||||
if(nInt != OBJECT_TYPE_WAYPOINT)
|
||||
{
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_GAS_EXPLOSION_EVIL), oTarget);
|
||||
}
|
||||
else
|
||||
{
|
||||
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_GAS_EXPLOSION_EVIL), GetLocation(oTarget));
|
||||
}
|
||||
|
||||
AssignCommand(oPC, ClearAllActions());
|
||||
|
||||
oTarget = GetWaypointByTag("tb_Gorgon1");
|
||||
location lTarget = GetLocation(oTarget);
|
||||
|
||||
if(GetAreaFromLocation(lTarget)==OBJECT_INVALID)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
AssignCommand(oPC, ActionJumpToLocation(lTarget));
|
||||
}
|
||||
Reference in New Issue
Block a user