Server Help

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()).
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group