Hi,
I've been working on a fire addon for fun, but whenever I spawn it it is a ERROR. Apart from the ERROR, it is fine.
Here is the code relating to the EMITTER with is this 'ERROR'
[CODE]local GLOBAL_EMITTER = ParticleEmitter( Pos )
p = GLOBAL_EMITTER:Add( "effects/flame",Pos);
p:SetVelocity(Vector(math.random(-30,30),math.random(-30,30), math.random(0, 70)))
p:SetDieTime(math.Rand(2, 3))
p:SetStartAlpha(230)
p:SetEndAlpha(0)
p:SetStartSize(math.random(70, 80))
p:SetEndSize(10)
p:SetRoll( math.Rand( 0,10 ) )
p:SetRollDelta(math.Rand( -0.2, 0.2 ))[/CODE]
The flame file is located "C:\Program Files (x86)\Steam\SteamApps\common\GarrysMod\garrysmod\addons\mindfulhacker\materials\effects\flame.vtf"
There is also a vmt file in the same dir as the VTF with the following:
[CODE]"UnlitGeneric"
{
"$basetexture" "effects/flame"
"$vertexcolor" 1
"$vertexalpha" 1
}
[/CODE]
Any ideas?
How are you creating the effect...Please don't with ents.Create
Maybe it needs a Model???? Or go join a PERP server download the fire model and join back and spawn yours see if it works?
[QUOTE=gonzalolog;45659855]How are you creating the effect...Please don't with ents.Create[/QUOTE]
[CODE] local effect = EffectData();
effect:SetOrigin(self:GetPos());
util.Effect("fire_ent", effect);[/CODE]
That is being triggered Clientside from a entity
can you try to rename the effect name? Anyway, it's a weird behavior this
[QUOTE=gonzalolog;45660299]can you try to rename the effect name? Anyway, it's a weird behavior this[/QUOTE]
Sorry it took so long, didnt realise you had posted.
Same thing occurs. Flashing Red ERROR and a error message "Failed to initialize effect" spammed.
Sorry, you need to Log In to post a reply to this thread.