Team Spartan Cookies & Milk Forums
effects - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: effects (/thread-1589.html)



effects - Hydridity - 09-02-2016

Hello people, i need help.
i want get some special effect for ship and i never used function in starfall effects , so can somebody introduce me to this function ? Smile
i mean what i have to do / if is there some kind of list with this effects / and exactly how this whole function works


RE: effects - TheOneAndOnlyTee - 10-02-2016

if you're talking about effects.createEffect() then i think this is Facepunch Thread and Gmod Wiki should have most/all of them

I've only used it once to make a simple little explosion so i could be incorrect.
Basically you use an effectData object to define the effects properties and then pass that to the effects.createEffect()
Properties you might be able to change, it did warn that some of them might be clamped for network optimisations.

Code:
local effectdata = EffectData() effectdata:SetOrigin( vPoint ) efffectdata:SetScale(2) effects.createEffect( "Explosion", effectdata )

Just don't go insane/crazy with the effects you're testing/using.


RE: effects - Hydridity - 10-02-2016

O looked on similar threads but i was not sure if its completly same as in starfall i think now i understand it. Thanks.


RE: effects - Yuri6037 - 11-02-2016

Well I would never recommend you using effects lib. I tried to use a long time ago, and after getting 1FPS when throwing a smoke effect that just won't dissapear, I gave up.


RE: effects - Hydridity - 11-02-2016

Yea now i know it Big Grin