Garry's Mod Wiki
Description
Sets the function that gets called whenever the particle collides with the world.
Arguments
1 function collideFunc
The collision callback.
Function argument(s):
1 CLuaParticle particle - The particle itself
2 Vector hitPos - Position of the collision
3 Vector hitNormal - Direction of the collision, perpendicular to the hit surface
Example
Creates an explosion every time an particle collides with something.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...