59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetLastKiller();
|
||
|
|
||
|
while (GetIsObjectValid(GetMaster(oPC)))
|
||
|
{
|
||
|
oPC=GetMaster(oPC);
|
||
|
}
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
object oTarget;
|
||
|
oTarget = GetObjectByTag("KingRall");
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//apply to the WP's location instead
|
||
|
|
||
|
int nInt;
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_PWKILL), oTarget);
|
||
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_PWKILL), GetLocation(oTarget));
|
||
|
|
||
|
oTarget = GetObjectByTag("KingRall");
|
||
|
|
||
|
AssignCommand(oTarget, ActionJumpToObject(GetObjectByTag("WP_JumpRall")));
|
||
|
|
||
|
oTarget = GetObjectByTag("Rall_Blockade");
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//apply to the WP's location instead
|
||
|
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_PWKILL), oTarget);
|
||
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_PWKILL), GetLocation(oTarget));
|
||
|
|
||
|
oTarget = GetObjectByTag("Rall_Blockade");
|
||
|
|
||
|
DestroyObject(oTarget, 3.0);
|
||
|
|
||
|
oTarget = GetObjectByTag("rall_coffin");
|
||
|
|
||
|
//Visual effects can't be applied to waypoints, so if it is a WP
|
||
|
//apply to the WP's location instead
|
||
|
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_PWKILL), oTarget);
|
||
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_PWKILL), GetLocation(oTarget));
|
||
|
|
||
|
oTarget = GetObjectByTag("rall_coffin");
|
||
|
|
||
|
DestroyObject(oTarget, 3.0);
|
||
|
|
||
|
}
|
||
|
|