OK I made a function to possess a bot pawn by pressing a key. Very easy => unpossess the pawns then exchange them.
This works but after, inside my new pawn I cannot fall from ledges !
This occur especially on the DoubleDamage map. I ve not tested all the maps... But before the possession I can fall.
I've tried few things :
I found a var named "bCanFallFromEdges" or something like that. I setted it true, but nothing happened.
I thought that was because the pawn was first possessed by a bot, so I tried to set bIsPlayer to true => the same result nothing.
I've tried to use xPawn instead of Pawn but it was useless.
Can someone give me some clue ?
The code is something like that (I'm not at home)
function PossessThatPawn(xPlayer xp, Pawn p1, Controller C, Pawn p2)
{
unpossess the first pawn
unpossess the second pawn
xp possess the second pawn
C possess the first pawn
}
This works but after, inside my new pawn I cannot fall from ledges !
This occur especially on the DoubleDamage map. I ve not tested all the maps... But before the possession I can fall.
I've tried few things :
I found a var named "bCanFallFromEdges" or something like that. I setted it true, but nothing happened.
I thought that was because the pawn was first possessed by a bot, so I tried to set bIsPlayer to true => the same result nothing.
I've tried to use xPawn instead of Pawn but it was useless.
Can someone give me some clue ?
The code is something like that (I'm not at home)
function PossessThatPawn(xPlayer xp, Pawn p1, Controller C, Pawn p2)
{
unpossess the first pawn
unpossess the second pawn
xp possess the second pawn
C possess the first pawn
}
Comment