Jump to content

Recommended Posts

Posted

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?

Posted (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 by Lisselli
Posted

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). :)

  • 2 weeks later...
Posted

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.

Posted

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...