Enderal SE https://mod.pub/enderal-se/38-enderal-se
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.
32 lines
579 B
32 lines
579 B
3 years ago
|
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
|