4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
657 B

Scriptname _00E_Ability_ManabarrierActorTrigger extends ObjectReference
import _00E_Ability_ElementalShieldScript
Faction Property PlayerFriendsFaction Auto
ObjectReference Property Manabarrier Auto
Actor Property TriggerActor Auto
Spell Property _00E_Ability_Manabarrier_Push Auto
Actor Property PlayerREF Auto
Event OnTriggerEnter(ObjectReference akActionRef)
akActionRef = TriggerActor
bool Enemy = TriggerActor.IsInFaction(PlayerFriendsFaction)
if Enemy == False
Debug.Notification("Enemy!")
_00E_Ability_Manabarrier_Push.RemoteCast(Manabarrier, PlayerREF, TriggerActor)
elseif Enemy == True
Debug.Notification("Friend!")
endif
EndEvent