And I believe it is because that a thing, that has been removed, tries to keep on creating...
I fire a bolt, and it goes off, leaving smoke and sound. It hits the wall, I see the explosion, and poof, the game crashes. Bolt has this COG in the templates. I believe I need to add a removed message, but how do I do that when I haven't specified the bolt anywhere appart from GetSenderRef()?
Code:
# Redeemer sound
#
# By Edward
flags=0x240
symbols
message created
message pulse
sound flying=crowenginewhine02.wav local
template smoke=+flamingsmoke local
int sm local
int ch=1 local
end
#
code
created:
ch=PlaySoundThing(flying,GetSenderRef(),1,0,10,0x81);
SetThingPulse(GetSenderRef(),.1);
return;
pulse:
ChangeSoundPitch(ch,2,0.1);
sm=CreateThing(smoke, GetSenderRef());
SetThingVel(sm,VectorSet( (rand()*2.00)-1.00 , (rand()*2.00)-1.00 , (rand()*2.00)-1.00 ));
return;
endI fire a bolt, and it goes off, leaving smoke and sound. It hits the wall, I see the explosion, and poof, the game crashes. Bolt has this COG in the templates. I believe I need to add a removed message, but how do I do that when I haven't specified the bolt anywhere appart from GetSenderRef()?
