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.
 
 
 

31 lines
579 B

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