Shargast_PRC8/_module/Chapter 2/nss/nw_all_feedbackg.nss
Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -04:00

38 lines
1.0 KiB
Plaintext

//::///////////////////////////////////////////////
//:: nw_all_feedbackg
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Transports you to the party leader.
*/
//:://////////////////////////////////////////////
//:: Created By: Brent
//:: Created On:
//:://////////////////////////////////////////////
void main()
{
object oLeader = GetFactionLeader(GetPCSpeaker());
if (GetIsObjectValid(oLeader) == TRUE)
{
AssignCommand(GetPCSpeaker(), JumpToObject(oLeader));
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
object oTarget;
oTarget = oPC;
//Visual effects can't be applied to waypoints, so if it is a WP
//the VFX will be applied to the WP's location instead
int nInt;
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_PULSE_WATER), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_PULSE_WATER), GetLocation(oTarget));
}
}