Author Topic: unable to do "new Debris() { ... }"  (Read 929 times)

so when i try to create new debris like this:
Code: [Select]
%debris = new Debris()
{
      datablock = quakeShotgunShellDebris;
      lifeTime = quakeShotgunShellDebris.lifeTime;
};
%debris.init(%pos, %vel);
it gives me a lovely error in my console that tells me that i have failed utterly at life and i should be destroyed

i am not very knowledgeable about debris, and the appendix (see page 47) doesn't seem very knowledgeable about creating debris either, stating that the only member field for debris is "lifetime", which i have included. i'm assuming that it is failing to create because i got some important member field wrong, but i honestly have no clue

so if any of you have any clue how to create debris on demand like this please say so. i don't want to resort to using the atrocious state system that torque has in order to accomplish what i want to do

i was not necessarily being serious

I don't know if this is the only way to do it but I know you can semi reliably spawn debris through an explosion

you can also spawn debris from a weapon (see the default gun)

I've never seen anyone spawn debris on it's own though

i was not necessarily being serious
but it sounds goofy

also i guess if i can't spawn them like that then screw it