Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name particlecore v3 sample
- @persist
- if (first()) {
- # these setup functions are only called once, the bulk of the data is sent from this point
- # RED PARTICLE - most compact syntax
- particleCreate("a","effects/redflare",vec(255,0,0),0,50,255,5,20,5,20,50,10,vec(0,0,20),1)
- # YELLOW PARTICLE - simple easy syntax
- particleCreate("b", "effects/muzzleflash1", vec(255,255,0))
- # BLUE PARTICLE - more spaced out varied code
- # this one has a numeric index, they can be strings or numbers
- particleCreate(500)
- particleCollision(500,0)
- particleDuration(500,20)
- particleGravity(500,vec(0,0,-5))
- # GREEN PARTICLE (LEGACY SYNTAX)
- # particle core v1 (this does not run the particle in this version)
- particle(10,5,20,"effects/fire_cloud1",vec(0,255,255),entity():pos()+vec(0,0,100),vec(200,0,0))
- }
- interval(50)
- # actually make the particles appear
- particleStart("a",entity():pos()+vec(0,0,30),randvec(-30,30))
- particleStart("b",entity():pos()+vec(0,0,30),randvec(-30,30))
- particleStart(500,entity():pos()+vec(0,0,30),randvec(-30,30))
- # particle core v1 (this creates the legacy particle)
- particleStart(entity():pos()+vec(0,0,50))
Advertisement
Add Comment
Please, Sign In to add comment