enderalse/source/scripts/_00e_actorsaytriggerscn.psc

32 lines
579 B
Plaintext
Raw Permalink Normal View History

Scriptname _00E_ActorSayTriggerSCN extends ObjectReference
ObjectReference Property ActorRef Auto
Actor Property PlayerRef Auto
Bool Property TriggeredByActorRef Auto
Topic Property TopicID Auto
Event OnTriggerEnter(ObjectReference akActionRef)
If TriggeredByActorRef
If akActionRef != ActorRef
Return
EndIf
Else
If PlayerRef == None
PlayerRef = Game.GetPlayer()
EndIf
If (akActionRef != PlayerRef) || (ActorRef.Is3DLoaded() == False)
Return
EndIf
EndIf
If Done == False
Done = True
ActorRef.Say(TopicID)
Disable()
EndIf
EndEvent
bool Done