On Trigger Enter with a Misc Object?

Post » Sat Mar 23, 2013 3:33 am

Hello everyone,

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


All the best,

Nicolas
User avatar
Elisabete Gaspar
 
Posts: 3558
Joined: Thu Aug 31, 2006 1:15 pm

Return to V - Skyrim