Jump to content

Need help making a selective collision trigger


Einlander
 Share

Recommended Posts

I am trying to write a script that will ignore specific entities, specifically the one that it's parented to. I had a box csg parented to the fpsplayer prefab, but that constantly triggered. I want to be able to modify the script to ignore the parent model/prefab. Any pointers where I should start?

 

Edit: Wow, as I was uploading a script I found http://www.leadwerks.com/werkspace/files/file/467-selective-collision-trigger/ so I can get it to detect the entity and by switching it to ~= I should be able to ignore that entity. Will it be able to detect other csg/prop objects or will I need to write a more complex script?

Link to comment
Share on other sites

The only way csg objects can be seen individually is by either giving a csg object mass or attaching a script. Without those 2 ways all csg gets collapsed into the same object. Providing 1 of those 2 things to a csg object makes it more like a model/entity in your game where you can find it and do things with it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...