!IMPORTANT!
this script only works in coop edit
----------
start the script by typing /startfollow and end it with /endfollow.
change the type of entity by typing /spawntype = "" defaults to particles
change the place the entity drops by typing /thedrop = defaults to 0
change each setting of the object by typing /s1 = , and /s2,/s3,/s4 respectivly
make sure to install the script corectly by creating an autoexe.cfg and typing in it exec fun.cfg. (make sure to have fun.cfg in the sauerbraten directory.)
activespawn = 0 spawntype = "particles" thedrop = 0 s1 = 0; s2 = 0; s3 = 0; s4 = 0; randval = 1234; startfollow = [if (! $activespawn 2 ) [activespawn = 1]; confollow; ] confollow = [ if ( = $activespawn 1 ) [ if ( = $editing 0 ) [edittoggle] entdrop $thedrop; activespawn = 2; edittoggle randval = ( + 1 ( rnd 10000 ) ) ]; sleep 100 [ if ( = $activespawn 2 ) [ if ( = $editing 0 ) [edittoggle] entdrop $thedrop; entfind * * * * * $randval; delent; newent $spawntype $s1 $s2 $s3 $s4; entproperty 4 $randval; edittoggle; confollow;]]] endfollow = [edittoggle; activespawn = 0; entdrop 2; entfind * * * * * $randval; delent; edittoggle];