home *** CD-ROM | disk | FTP | other *** search
- #standard type crate generation cog.
- symbols
- message startup
- message arrived
-
- thing crateG
- thing teleport1
- thing teleport2
-
- template crateT
-
- sector checksector
-
-
- end
-
- ## Code Section
- code
- startup:
- player=getlocalplayerthing();
- call createcrate;
- return;
-
- createcrate:
- newcrate=CreateThing(crateT, crateG);
- CaptureThing(newcrate);
- movetoframe(newcrate, 1, 5);
- return;
-
- arrived:
- destroything(newcrate);
- if (getthingsector(player)==checksector) {
- teleportthing(player, teleport1);
- }
- else {
- call createcrate;
- }
- return;
-
-
-
- end
-
-
-
-
-
-
-
-
-
-
-