0 like 0 dislike
120 views
how does one go about creating an attribute for spawncount? I tried making a layer script, but it says it's unwriteable
by eugeneflormata (200 points)

1 Answer

0 like 0 dislike

Hi,

You can use the "Flux" attribute in the layer script to weight the spawn count:

function void    Run()
{
    Flux = 100; // 100 * spawncount
}

http://wiki.popcornfx.com/index.php/Scripting_reference_1100#Spawner_2

Hope this helps,

Cheers

by Paul (7.9k points)
...