• Knowing if an entity is being held by a physgun?
    2 replies, posted
How to check if an entity is being held by a physgun? The entity that needs to be checked has Movetype_step and is an npc.
[b][url=http://wiki.garrysmod.com/?title=Entity.IsPlayerHolding]Entity.IsPlayerHolding [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] Or,if you want to do it your way,use [b][url=wiki.garrysmod.com/?title=Gamemode.PhysgunDrop]Gamemode.PhysgunDrop [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] and [b][url=wiki.garrysmod.com/?title=Gamemode.PhysgunPickup]Gamemode.PhysgunPickup [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
Does that even work? [editline]6th December 2010[/editline] Nope, doesn't work, atleast not with the physics gun, haven't checked with grav gun. [editline]6th December 2010[/editline] Wait, works on prop_physics, does not work on NPC. [editline]6th December 2010[/editline] [QUOTE=Jvs;26522700][B][URL="http://wiki.garrysmod.com/?title=Entity.IsPlayerHolding"]Entity.IsPlayerHolding [img_thumb]http://wiki.garrysmod.com/favicon.ico[/img_thumb][/URL][/B] Or,if you want to do it your way,use [B][URL="http://wiki.garrysmod.com/?title=Gamemode.PhysgunDrop"]Gamemode.PhysgunDrop [img_thumb]http://wiki.garrysmod.com/favicon.ico[/img_thumb][/URL][/B] and [B][URL="http://wiki.garrysmod.com/?title=Gamemode.PhysgunPickup"]Gamemode.PhysgunPickup [img_thumb]http://wiki.garrysmod.com/favicon.ico[/img_thumb][/URL][/B][/QUOTE] Already knew those, was just hoping that there would be some hook like that. Guess I'll do it using those.
Sorry, you need to Log In to post a reply to this thread.