Vaelek Posted February 12, 2015 Share Posted February 12, 2015 Is there an easy way to prevent a child object from being able to trigger the Use() function of its parent? Also, is there a way to make an object invisible to this? For example if I have an object that partially obstructs another, and the one behind it is what needs the Use() trigger. Just for example say you have an iron fence in front of an object with a trigger, to make it so you don't have to position the crosshair between the bars to interact with it. Quote Link to comment Share on other sites More sharing options...
Genebris Posted February 12, 2015 Share Posted February 12, 2015 entity:SetPickMode(0) and picking won't work on this entity. 1 Quote Link to comment Share on other sites More sharing options...
awgsknite Posted February 12, 2015 Share Posted February 12, 2015 some simple if statement in your script could work: if (use object code == fence) ignore collision code else use object code or else just don't put a trigger or collider on the fence or any use object code on the fence Quote http://steamcommunity.com/profiles/76561197977392956/7977392956/ Link to comment Share on other sites More sharing options...
Recommended Posts
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.