Garry's Mod Wiki

Revision Difference

Global.DropEntityIfHeld#562596

<function name="DropEntityIfHeld" parent="Global" type="libraryfunc"> <description>Drops the specified entity if it is being held by any player with Gravity Gun or `+use` pickup.⤶ <description>⤶ <deprecated>You really should be using <page>Entity:ForcePlayerDrop</page>, which does the same thing.</deprecated>⤶ ⤶ Drops the specified entity if it is being held by any player with Gravity Gun or `+use` pickup.⤶ See also <page>Player:DropObject</page> and <page>Entity:ForcePlayerDrop</page>. </description> <realm>Server</realm> <args> <arg name="ent" type="Entity">The entity to drop.</arg> </args> </function>