I did some searching around the web and found out that the bugbait splash effect is an entity ( env_sporeexplosion ) but for some reason I can't get the effect to work. The entity spawns however, no errors or anything and its in the Entity list, so I'm not sure what I'm doing wrong here. Here is the code, simple as could be:
[lua]local e = ents.Create("env_sporeexplosion")
e:SetPos(Vector(0,0,0))
e:Spawn()[/lua]
I've never used that effect before and I don't know if it's documented anywhere, but it might need a few more parameters.
Check here to see more [b][url=http://wiki.garrysmod.com/page/Classes/CEffectData]Classes/CEffectData[img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]. SetMagnitude, SetRadius, or SetScale might be what it needs.
[B]Edit[/B]: Oh wait that's an entity not an effect, ignore me.
[url]https://developer.valvesoftware.com/wiki/Env_sporeexplosion[/url]
Try setting some keyvalues, i know i was able to place one on a map just fine.
I did try placing some key values like "ltime" or "spawnrate" thinking that the ltime is lifetime and spawnrate was the intensity being at 0, but it turns out ltime doesnt do a thing and spawnrate is at 100 by default.
[editline]25th October 2012[/editline]
Well I found out the issue, turns out its Disabled by default, not sure why though, had to do Input("Enable").
Sorry, you need to Log In to post a reply to this thread.