Re: Actually, I can't get it to wrok :(


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]

Posted by CogKing on February 05, 1998 at 16:16:11:

In Reply to: Actually, I can't get it to wrok :( posted by Raptor [JiB] on February 05, 1998 at 15:09:18:

> > > I am using a ghost as suggested. However, this ghost is created earlier during the cog. The only refernce to it in symbols is template placeghost=ghost
> > > In code it is created using CreateThing(placedghost, player);
> > > Later I use TeleportThing(player, placedghost) but it only crashes to windows, so what have I done wrong?

> > newGhost = CreateThing(placedghost, player);
> I did just as you said, adding
> thing newghost
> in the symbols. Nothing happenned. Do I need any of this local, nolink etc. stuff, what's going on?
> > TeleportThing(player, newGhost);

Use :
int newGhost local

But even what you wrote should have worked.
Can you put a PrintInt(newGhost); after the newGhost = CreateThing(...); ?
If it prints -1 there was a problem in the thing creation...

-CogKing


Follow Ups:



Post a Followup

Name:
E-Mail:
Subject:
Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]