Di0nysys Posted May 3, 2017 Share Posted May 3, 2017 I need a way to detect when a clutter object is within a specific triggerbox. I've read akactionref in OnTriggerEnter only detects actors. Is this true, or is there an alternate way of doing this? Link to comment Share on other sites More sharing options...
Lisselli Posted May 3, 2017 Share Posted May 3, 2017 (edited) You need to change the Collision Layer in the Primitive tab on the Trigger's reference(the form placed in the world.)Collision Layer is under the Miscellaneous tree in the CK. You can create your own collision layer add the L_STATIC(or even L_CLUTTER) and check "Senser" and "Trigger Volume" so that it shows up in the drop down on the trigger's reference. Edited May 3, 2017 by Lisselli Link to comment Share on other sites More sharing options...
Ghaunadaur Posted May 3, 2017 Share Posted May 3, 2017 OnTriggerEnter detects object references, which includes actors. Link to comment Share on other sites More sharing options...
skinnytecboy Posted May 8, 2017 Share Posted May 8, 2017 You need to change the Collision Layer in the Primitive tab on the Trigger's reference(the form placed in the world.) Collision Layer is under the Miscellaneous tree in the CK. You can create your own collision layer add the L_STATIC(or even L_CLUTTER) and check "Senser" and "Trigger Volume" so that it shows up in the drop down on the trigger's reference. Â I too was racking my brain trying to figure out this one, until Jokerine pointed me to this post and Dio clarified a bit more. Thank you. In my case, i just needed to change the primitive layer to L_Trigger to get my script to detect an object (a giant beach ball). :) Link to comment Share on other sites More sharing options...
kingeric1992 Posted May 23, 2017 Share Posted May 23, 2017 Is there a way to tell what Collision Layer a object is in? Was hoping to be able to detect some structures, but non of the Collision Layer works. Link to comment Share on other sites More sharing options...
Di0nysys Posted May 23, 2017 Author Share Posted May 23, 2017 Use a regular trigger, with the collision layer set to 'L_Trigger'. However, u won't be able to detect whether the static is Intrigger since the function requires the object enter the trigger to trigger it. Link to comment Share on other sites More sharing options...
kingeric1992 Posted May 23, 2017 Share Posted May 23, 2017 Thx for the quick reply, though, I am using L_Trigger ( and I've also created a all-in-one layer that includes every other layers) .Regarding the detection, I had the trigger box following player (ref.moveto), and it can be triggered by non-static objects, but not those static ones like houses and such. Link to comment Share on other sites More sharing options...
Recommended Posts