Knowing if an entity is being held by a physgun?

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.

**[Entity.IsPlayerHolding

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Entity.IsPlayerHolding)**
Or,if you want to do it your way,use **[Gamemode.PhysgunDrop

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.PhysgunDrop)** and **[Gamemode.PhysgunPickup

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.PhysgunPickup)**

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]

Already knew those, was just hoping that there would be some hook like that. Guess I’ll do it using those.