ASSS Custom Projects - example target parameter function Helicon - Fri Apr 11, 2003 5:09 pm Post subject: example target parameter function
i know im a moron.
could someone please post a code example taking a Player parameter and use WarpTo() on that player. I know the function takes a Target parameter, and that it should include T_PLAYER. Thanks again
Smong - Fri Apr 11, 2003 5:19 pm Post subject:
Target t;
t.type = T_PLAYER;
t.u.p = p; //p = Player *
game->WarpTo(&t, x, y);
I figured this out by looking in buy.c just before GivePrize() (slightly similar to WarpTo()).