PDA

View Full Version : Player Controller always at PlayerWaiting



Paumonsu
12-26-2011, 02:40 PM
Hi. I'm trying to set a default state for the player:


auto state WaitingSelection
{
Begin:
`log("WaitingSelection");
}

But it always returns PlayerWaiting, so it never enters this state. Do you know when it's being overriden?

Spoof
12-26-2011, 04:58 PM
The Pawn is probably overriding the controller state to the value of LandMovementState when it spawns. Look at the function DropToGround() in the Pawn class.

Paumonsu
12-26-2011, 06:27 PM
My player controller doesn't have any pawn

Contagion
12-26-2011, 10:11 PM
In your game class set bDelayedStart=false and bRestartLevel=false in the default properties. Really the delayed start is what you need more but the restart level may help you from contacting the forums again about something else later on. If that doesn't help let us know :)

Paumonsu
12-28-2011, 10:34 AM
Hello Contagion. I set those attributes to false but now the player state is always Dead. I get this errors on the console:


[0003.99] Log: >>>>>>>>>>>>>> Initial startup: 3.99s <<<<<<<<<<<<<<<
[0007.84] ScriptLog: Couldn't spawn player of type None at PlayerStart_0
[0007.84] ScriptLog: failed to spawn player at PlayerStart_0
[0010.56] ScriptWarning: Invalid user index (255) specified for ClearReadProfileSettingsCompleteDelegate()
OnlineSubsystemSteamworks Transient.OnlineSubsystemSteamworks_0
Function OnlineSubsystemSteamworks.OnlineSubsystemSteamwork s:ClearReadProfileSettingsCompleteDelegate:00FE


My player is working becuase I've created an exec function on my player class and it works well. So what's happening?

As I said before, I don't want a pawn for my playercontroller, so that's maybe whats causing the problem

Paumonsu
12-28-2011, 10:48 AM
Ok I fixed it by deleting some bindings that fired Pawn code. Since I don't have one, it gave me errors.

But still I'm getting Dead state even when I made auto state Idle in my player controller. So it must be overriden someqhere else.