Garry's Mod Wiki

Revision Difference

util.ParticleTracer#567680

<function name="ParticleTracer" parent="util" type="libraryfunc"> <description>Creates a tracer effect with the given parameters.</description>⤶ <description>Creates an orange box (.pcf) tracer effect with the given parameters. See <page>util.ParticleTracerEx</page> for version with additional arguments.⤶ Internally uses `ParticleTracer` engine effect. (<page>util.Effect</page>) which then spawns in `ParticleEffect` effect.⤶ </description>⤶ <realm>Shared</realm> <args> <arg name="name" type="string">The name of the tracer effect.</arg>⤶ <arg name="name" type="string">The name of the .pcf particle effect to use for the tracer.⤶ Control Point 0 is the start location. Control Point 1 is the end pos.⤶ </arg>⤶ <arg name="startPos" type="Vector">The start position of the tracer.</arg> <arg name="endPos" type="Vector">The end position of the tracer.</arg> <arg name="doWhiz" type="boolean">Play the hit miss(whiz) sound.</arg> <arg name="doWhiz" type="boolean">Whether to play the hit near-miss (whiz) sound.</arg> </args> </function>