Particle.SetEndSize

From GMod Wiki

Jump to: navigation, search
Function
Syntax Particle:SetEndSize( Integer size )
Description:
Sets the end size of a particle. It will resize itself to this size over the course of its lifetime.
Returns: nil
In Object: CLuaParticle
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Particle.SetEndSize]Particle.SetEndSize [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis doesn't create any effect on it's own, but this is how it is set up in the init.lua of the effect.
Used onNewerClient.png
Code
 
            local particle = emitter:Add( "effects/blood_core", Pos )
                particle:SetVelocity( Vector(0.001, 0.001, 0.001) )
                particle:SetDieTime( 1 )
                particle:SetStartAlpha( 255 )
                particle:SetEndAlpha( 0 )
                particle:SetStartSize( 8 )
                particle:SetEndSize( 8 )
                particle:SetRoll( 0 )
                particle:SetRollDelta( 0 )
                particle:SetColor( 0, 159, 249 )
		particle:SetAirResistance( 20 );
		particle:SetGravity( Vector( 0, 0, 0 ) );
		particle:SetCollide( true );
		particle:SetBounce( 0 ); 
 
OutputN/A


See Also

Warning 64.pngThis page needs to be edited as it contains information that is unclear or incorrect. Improvement can be discussed on the talk page. Find more pages that need work here.
Details: None given.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox