PDA

View Full Version : dropping flags



legacy-s4623
06-24-2006, 12:50 AM
I am subclassing the teleporter class, and...

is there a set of lines for me to force the player/bot to drop the flag when they use that particular set of teleporters? if so what are they?

or should I just use a scripted trigger? if so what part of the AIScript corresponds to the dropping flag set of code?

any help would be very much appreciated.

legacy-pcmods
06-25-2006, 10:19 AM
I beleive you can use,:

Pawn.DropFlag();

when they touch the teleporter.
You could even check what team there on:

if (Pawn.GetTeamNum()==0) {Pawn.DropFlag();}
if (Pawn.GetTeamNum()==1) {Pawn.DropFlag();}

legacy-s4623
06-26-2006, 02:06 AM
seems to work well. Thanks!