RoT2_PRC8/_module/nss/cb_mind_spawn2.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

43 lines
1.4 KiB
Plaintext

void main()
{
object oPC = GetPCSpeaker();
object oTarget;
oTarget = GetObjectByTag("tab_md1");
AssignCommand(oTarget, ActionOpenDoor(oTarget));
oTarget = GetObjectByTag("tab_md2");
AssignCommand(oTarget, ActionOpenDoor(oTarget));
oTarget = GetObjectByTag("tab_md3");
AssignCommand(oTarget, ActionOpenDoor(oTarget));
oTarget = GetObjectByTag("wp_tabmind_01");
int nInt;
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(1.5,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_DISPEL_DISJUNCTION), oTarget));
else DelayCommand(1.5,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_DISPEL_DISJUNCTION), GetLocation(oTarget)));
oTarget = GetObjectByTag("wp_tabmind_02");
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(3.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_DISPEL_DISJUNCTION), oTarget));
else DelayCommand(3.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_DISPEL_DISJUNCTION), GetLocation(oTarget)));
oTarget = GetObjectByTag("wp_tabmind_03");
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(4.5,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_DISPEL_DISJUNCTION), oTarget));
else DelayCommand(4.5,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_DISPEL_DISJUNCTION), GetLocation(oTarget)));
}