Garry's Mod Wiki

Revision Difference

CLuaEmitter:Add#513823

<function name="Add" parent="CLuaEmitter" type="classfunc">⤶ <description>Creates a new <page>CLuaParticle</page> with the given material and position.</description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="material" type="string">The particles material. Can also be an &lt;page&gt;IMaterial&lt;/page&gt;.</arg>⤶ <arg name="position" type="Vector">The position to spawn the particle on.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="CLuaParticle">The created particle, if any.</ret>⤶ </rets>⤶ </function>⤶ ⤶