Can anyone explain why inside the 3rd loop for ZuGamPlayerController the variables pphs1 and hipBot are none when written to the log when directly above they are shown to have a value when written to the log?
Each loop follows directly after the other one.
ForEach AllActors(class'SoldierHorseBot', pphs1)
{
if (soh == pphs1)
{
`log("********* Possess pphs1 31 Same **************"$pphs1);
}
`log("********* Possess31 PPHS1 in loop **************"$pphs1);
}
ForEach AllActors(class'HippoBot', hipBot)
{
`log("********* Possess31 Hippo in loop **************"$hipBot);
}
ForEach AllActors(class'ZUGamePlayerController', ZUG)
{
`log("********* Possess31 ZUG **************"$ZUG);
`log("********* Possess31 PPHS1 **************"$pphs1); // why is this none ??
`log("********* Possess31 hipBot **************"$hipBot); // why is this none??
}
0104.03] ScriptLog: ********* Possess pphs1 31 Same **************SoldierHorseBot_0
[0104.03] ScriptLog: ********* Possess31 PPHS1 in loop **************SoldierHorseBot_0
[0104.03] ScriptLog: ********* Possess31 PPHS1 in loop **************SoldierHorseBot_1
[0104.03] ScriptLog: ********* Possess31 PPHS1 in loop **************SoldierHorseBot_2
[0104.03] ScriptLog: ********* Possess31 PPHS1 in loop **************SoldierHorseBot_3
[0104.03] ScriptLog: ********* Possess31 Hippo in loop **************HippoBot_0
[0104.03] ScriptLog: ********* Possess31 ZUG **************ZUGamePlayerController_0
[0104.03] ScriptLog: ********* Possess31 PPHS1 **************None
[0104.03] ScriptLog: ********* Possess31 hipBot **************None
[0104.03] ScriptLog: ********* Possess31 ZUG **************ZUGamePlayerController_1
[0104.03] ScriptLog: ********* Possess31 PPHS1 **************None
[0104.03] ScriptLog: ********* Possess31 hipBot **************None