Garry's Mod Wiki

Revision Difference

Global.EffectData#566170

<function name="EffectData" parent="Global" type="libraryfunc"> <description> Returns a <page>CEffectData</page> object to be used with <page>util.Effect</page>. <bug issue="2771">This does not create a unique object, but instead returns a shared reference. That means you cannot use two or more of these objects at once.⤶ This also means that any values previously set will carry over to all future calls of this functions, and may unexpectedly affect effects created via <page>util.Effect</page>.</bug>⤶ <bug issue="2771">This does not create a unique object, but instead returns a shared reference. That means you cannot use two or more of these objects at once.</bug>⤶ ⤶ <warning>Any values previously set (Origin, Magnitude, Scale etc) will carry over to all future calls of this function, and may unexpectedly affect effects created via <page>util.Effect</page>.</warning>⤶ </description> <realm>Shared</realm> <rets> <ret name="" type="CEffectData">The <page>CEffectData</page> object.</ret> </rets> </function>