dafydd99 Posted September 5, 2019 Share Posted September 5, 2019 Hi, Just wondering if anyone can help. I've been trying to make a trigger box that activates when an item falls onto it - but it only seems to trigger when the player walks into it. Is there a type of form I could change to or script I could add that would make my item activate it? Cheers, Dafydd Link to comment Share on other sites More sharing options...
maxarturo Posted September 5, 2019 Share Posted September 5, 2019 (edited) " I've been trying to make a trigger box that activates when an item falls onto it ". I guess that by " Object " you mean " MISC Object ". You need to make and add a new script to the trigger box, and it should look like this : MiscObject Property MyMO Auto {Assign the MISC object that will trigger this TriggerBox} Event OnTriggerEnter(ObjectReference akActionRef) if akActionRef == MyMO ; Do Stuff EndIf EndEvent Edited September 5, 2019 by maxarturo Link to comment Share on other sites More sharing options...
dafydd99 Posted September 6, 2019 Author Share Posted September 6, 2019 Thanks Maxarturo, No the actual item is an 'ingredient'. I've also tried with a regular item than can be picked up and put into the player's inventory - a skull.. for whatever reason it's not even triggering the onentertrigger function (ie I've put a Debug.Notification("Entered!" message at the start of it) - I've put a regular inventory item through the triggerbox too with no effect. But the player object reference triggers it successfully every time. So not sure what to think! Thanks for any help, Dafydd Link to comment Share on other sites More sharing options...
maxarturo Posted September 6, 2019 Share Posted September 6, 2019 " for whatever reason it's not even triggering the onentertrigger function "You mean with the script above ? Try this : Ingredient Property MyIng auto {Assign the INGRIDIENT that will trigger this TriggerBox} Event OnTriggerEnter(ObjectReference triggerRef) if triggerRef == MyIng Debug.Notification("Entered!") ; Do Stuff EndIf EndEvent Link to comment Share on other sites More sharing options...
maxarturo Posted September 6, 2019 Share Posted September 6, 2019 (edited) I forgot to add that in order for an object to trigger the Trigger Box, you need to change its " Collision Layer ". Go to the trigger box " Reference Property " and in the Tab " Primitive " > in " Collision Layer " > change the " L_ACTORZONE " > to " L_PROJECTILZONE " ( or L_TRIGGER ) * I haven't done it (your idea), but is quite simple and both scripts should be working. Edited September 6, 2019 by maxarturo Link to comment Share on other sites More sharing options...
dafydd99 Posted September 6, 2019 Author Share Posted September 6, 2019 Ah perfect!! Yes, that did the trick - changing to L_TRIGGER. I now have a ball rolling down a ramp and teleporting when it falls into a bucket. This makes me surprisingly happy! Many thanks for your help, Maxarturo - I'd never noticed that little menu tab before! Cheers, Dafydd Link to comment Share on other sites More sharing options...
maxarturo Posted September 8, 2019 Share Posted September 8, 2019 :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts