Author Topic: Spawning shapes with a certain scale.  (Read 646 times)

For a weapon I am in development on I want it to create a dts shape at the collision. While this is not really challenging, I do not know how to set the scale the object has when it spawns.
Also I want to know if you guys know how to make it delete itself after a certain amount of time. Really I don't actually care about the time part because I could find that out myself once my laziness ends, but I have been unable to find out how to change the scale of the spawned object.

uh, try this:

You'll actually have to modify it though, its only pseudo-code.

Code: [Select]
function projectile::oncollision()
{
     %newshape = new staticshape()
     {
          datablock = blah;
          scale = "5 5 5";
     };
     %newshape.schedule(5000,"delete");
}