I'm a little stuck with a relatively simple script I need in order to make a riddle work - A trigger box that detects when a certain object enters it. This is what I wrote, the ObjectReference being a Misc-Object on the floor which the play is meant to pick up and put inside the trigger's radius. However, nothing happens. Can anyone help me with this?
Spoiler
Scriptname _00E_OldSherath_RiddleTriggerScript extends ObjectReference
ObjectReference Property ObjectToInsert Auto
Event OnTriggerEnter (ObjectReference akActionRef)
if akActionRef == ObjectToInsert
Debug.Notification("It worked. Whee!")
endif
EndEvent
ObjectReference Property ObjectToInsert Auto
Event OnTriggerEnter (ObjectReference akActionRef)
if akActionRef == ObjectToInsert
Debug.Notification("It worked. Whee!")
endif
EndEvent
All the best,
Nicolas