Forum rules - please read before posting.

Scene player object doesn't seem to be used

edited June 2020 in Technical Q&A

AC Ver: 1.71.4
Unity Ver: 2019.2.4f1

Hey folks,

Got an odd problem, I'm sure this used to work, not sure why it suddenly doesn't.

I have a scene with a player object in it, like this:

Key thing is this one has a HitByAxe script on it.

However, when running the game it doesn't seem the scene player object is being used:

Instead the default player prefab set up in the settings manager appears to be used.

My understanding is if a player object is in the scene, that should override the prefab set in the settings manager. Is that still correct?

Also, double checking, when doing AC.KickStarter.player, does that return a reference to whatever the active player object in a scene is?

Comments

  • Check the Console - it should report how the Player has been set.

    Is Player switching set to Allow? Local Players are not possible in this case.

    KickStarter.player will return the active Player, yes.

  • edited June 2020

    Yup, it was playing switching. I'm an idiot. There was even a warning in the console I failed to read saying the local player wouldn't be used.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.