ENT.PhysicsCollide
From GMod Wiki
Event Hook | |
Hook Name | PhysicsCollide |
Syntax | ENT:PhysicsCollide( Table :CollisionData data, Physobj physobj ) |
Description | Controls what a scripted entity does during a collision |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=ENT.PhysicsCollide]ENT.PhysicsCollide [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- See CollisionData for a listing of data passed to the hook.
- If you run essentially any function within this, you will get an error message as you have apparently defiled the entity's collision rules, and you're definitely about to crash the server.
- This function is called if you hit ANYTHING! (world or entities)