PoA_PRC8/module/nss/xxuse.nss

13 lines
500 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
void main()
{
object oPlayer = GetLastUsedBy();
location oCandy = GetLocation(oPlayer);
string xxVarName = "xx"+GetPCPlayerName(oPlayer);
object oModule = GetModule();
location xxLoc = GetLocalLocation (oModule, xxVarName);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_FNF_BLINDDEAF), oCandy, 3.5);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_FNF_BLINDDEAF), xxLoc, 5.0);
DelayCommand(3.0, (AssignCommand(oPlayer, ActionJumpToLocation(xxLoc))));
}