Announcement

Collapse
No announcement yet.

Seizing Pawns

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Seizing Pawns

    Hey guys.

    Ive been messing with something, and it doesnt seem to be working out well for me...

    So I want to "seize" the pawn from another controller in the match. So lets say there's 2 xPawns in a match (one human controlled, one controlled by xBot).

    I want to take possession of the xPawn that the xBot is controlling myself.

    I tried this:

    //botPawn is the xPawn controlled by bot.
    //myPawn is the xPawn controlled by me.

    botPawn.UnPossessed();
    myPawn.UnPossessed();
    xPlayerController.Possess(botPawn);

    But that only sort of works. Like I see from the pawns perspective, but I cant move... but I can jump and look around.

    I also tried other combinations like:
    xPlayerController.UnPossess();
    xPlayerController.Possess(botPawn);

    And other such things.

    I have a work around for now, but I really want to possess the pawn if I can.

    Any ideas?
Working...
X