Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Problems with CreateThing and DestroyThing
Problems with CreateThing and DestroyThing
2000-12-22, 4:44 AM #1
Here's the coding:
symbols

thing camera1
thing camera2
thing camera3
thing location
thing player local
thing kyle local
template iojuz=iojuz local
template iochoke=iochoke local
template iodie=iodie local
sound SoundToPlay=forcegrip01.wav
sound other=i00o109z.wav


flex delay
flex delay2
flex delay3

message startup

end

code

startup:

// freeze Kyle
SetActorFlags(Player, 0xa00000);
StopThing(Player);

jkBeginCutscene();
SetCameraFocus(0, camera1);
Sleep(delay2);
Print("Sir, we have a priority one transmission from Colonel Mustaard.");
Sleep(delay);
SetCameraFocus(0, camera2);
Print("Patch it through");
Sleep(delay);
CreateThing(iojuz, location);
SetCameraFocus(0, camera3);
Print("The intruder has broken through the main defenses.");
Sleep(delay);
Print("He's currently heading to the office level.");
Sleep(delay);
SetCameraFocus(0, camera3);
Print("Dammit! Do I not pay you to take care of these things?!");
DestroyThing(iojuz, location);
CreateThing(iochoke, location);
PlaySoundLocal(SoundToPlay, 1, 0, 132);
Sleep(delay3);
DestroyThing(iochoke, location);
CreateThing(iodie, location);
PlaySoundLocal(other, 1, 0, 132);
DestroyThing(iodie, location);
Sleep(delay3);
SetCameraFocus(0, camera1);
Sleep(delay);
Print("Find me this intruder, or you shall be next!");
Sleep(delay);
jkEndCutscene();
jkEndLevel(1);
Return;

end

Now, the COG creates iojuz, but it doesn't delete iojuz. It creates iochoke, but doesn't delete iochoke. It doesn't even create iodie.

------------------
Elyas's Domain - Home to a Wolfbrother
Home to AlieNations - story and mod
What is Victoria's secret?
Diesels are eeeeevil
A miracle is a deaf man listening to a blind musician play sheet music
the idiot is the person who follows the idiot and your not following me your insulting me your following the path of a idiot so that makes you the idiot - LC Tusken
2000-12-22, 6:52 AM #2
The format of DestroyThing is DestroyThing(thing);

Don't know about the iodie though

------------------
Death is coming...

The only reason he's not here yet is
because he stopped at a pub along the way.
"And lo, let us open up into the holy book of Proxy2..." -genk
His pot is blacker than his kettle!
2000-12-22, 4:52 PM #3
You need to use something like this

something = CreateThing(thing, thingpos);
DestoryThing(something);

hope that helps.

------------------
Keith: "Perhaps there was an age in which people had Knowledge of Magic..."
Keith: "Perhaps there was an age in which people had Knowledge of Magic..."
JK cogs

↑ Up to the top!