Author |
Message |
Helicon Server Help Squatter
Joined: Dec 03 2002 Posts: 771 Location: GNU Doldrums Offline
|
Posted: 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 _________________ Signatures just seem so quaint. |
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: 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()). |
|
Back to top |
|
|
|