-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFPE_STD_Cure.psc
36 lines (32 loc) · 1.14 KB
/
FPE_STD_Cure.psc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Scriptname FPE_STD_Cure extends activemagiceffect
Actor Property PlayerRef Auto Const
Perk[] Property WLD_STD Auto
Event OnEffectStart(Actor akActor, Actor akCaster)
Actor akActor_Target = GetActorUnderCrosshairs()
Utility.wait(2.5 as float)
Debug.trace("akActor_Target.GetLeveledActorBase().GetName()")
Debug.trace(akActor_Target.GetLeveledActorBase().GetName())
int i
while (i <= WLD_STD.Length)
Debug.trace("i")
Debug.trace(i)
Debug.trace("WLD_STD.Length")
Debug.trace(WLD_STD.Length)
If (akActor_Target.HasPerk(WLD_STD[i]))
Debug.trace("WLD_STD[i]")
Debug.trace(WLD_STD[i])
akActor_Target.RemovePerk(WLD_STD[i])
Debug.notification(akActor_Target.GetLeveledActorBase().GetName() +" has been cured of "+ WLD_STD[i].GetName())
Utility.wait(2.5 as float)
Debug.notification("is this fucking thing working, like what the fucking fuck")
endIf
i += 1
endwhile
EndEvent
Actor Function GetActorUnderCrosshairs()
Actor ScannedActor = LL_FourPlay.LastCrossHairActor()
If ScannedActor == NONE || ScannedActor.GetDistance(PlayerRef) > 256.000
return PlayerRef
EndIf
Return ScannedActor
EndFunction