Posted by Raptor [JiB] on February 06, 1998 at 12:08:21:
In Reply to: Re: Actually, I can't get it to wrok :( posted by CogKing on February 05, 1998 at 16:16:11:
> > > > 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