• Physgun issues with parented entities
    9 replies, posted
I'm making a locker entity that has 3 parented "buttons" for the doors. the buttons have 3 separate modes that set 3 separate values on it's parent (the locker). the only issue is that parented entities bug out when you try to pick them up, as shown in the end of the video: [video]https://youtu.be/ZSC3vtU8YME[/video] My friend an I have tried loads of things to fix this. (setting flags, collision groups, setsolid, etc) but nothing worked. Hopefully someone will fix this as i have other entities that involve parented entities.
Dont initialize physics on client, don't allow the doors to be physgunned at all, there's no reason/point in doing so.
[QUOTE=Robotboy655;49419002]Dont initialize physics on client, don't allow the doors to be physgunned at all, there's no reason/point in doing so.[/QUOTE] everything with initialize is serverside, and the buttons take up most of the space on the front of the locker. i know theres some way to fix this, theres a tool on the workshop that parents things.
bump
Can you set physgun target? I'm not sure. If you can, wait for them to physgun the buttons then set the locker as the target instead.
[QUOTE=RealDope;49463829]Can you set physgun target? I'm not sure. If you can, wait for them to physgun the buttons then set the locker as the target instead.[/QUOTE] cant do that
Making the buttons non solid and removing their physics using something like this will make the phys gun ignore the buttons but not the main entity. [CODE]button:PhysicsInit( SOLID_NONE ) button:SetMoveType( MOVETYPE_NONE ) button:SetSolid( SOLID_NONE )[/CODE]
[QUOTE=cpone;49472407]Making the buttons non solid and removing their physics using something like this will make the phys gun ignore the buttons but not the main entity. [CODE]button:PhysicsInit( SOLID_NONE ) button:SetMoveType( MOVETYPE_NONE ) button:SetSolid( SOLID_NONE )[/CODE][/QUOTE] setting it to SOLID_NONE just makes it unuseable (and yes, i know this because ive tried it before)
bump
Make it SOLID_NONE then use [url]http://wiki.garrysmod.com/page/GM/FindUseEntity[/url] to forward the use action to it if they're in range and looking at it.
Sorry, you need to Log In to post a reply to this thread.