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.
19 lines
713 B
19 lines
713 B
Scriptname DragonPerchScript extends ObjectReference
|
|
{Script attached to all dragon perches. ASSUMES THE ONLY THING ABLE TO ACTIVATE THE PERCH IS A DRAGON!}
|
|
|
|
WIFunctionsScript Property WI Auto ;added by jduvall
|
|
{Pointer to WIFunctionsScript on WI quest.}
|
|
|
|
;Primary use at the moment, is to register a dragon attack on towns, should a dragon perch somewhere in a town -jduvall
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
|
|
|
;*** !!! ASSUMES THE ONLY THING ABLE TO ACTIVATE THE PERCH IS A DRAGON !!!! ***
|
|
|
|
; debug.trace(self + "OnActivate(" + akActionRef + ") calling WI.RegisterDragonAttack()")
|
|
|
|
;SEE ALSO: DragonActorScript
|
|
WI.RegisterDragonAttack(GetEditorLocation(), akActionRef as Actor)
|
|
|
|
|
|
EndEvent
|
|
|