Hi Chris,
I am using the Scene Switch and also via script:
AC.SceneInfo mySceneInfo = new AC.SceneInfo (ChooseSceneBy.Number, "", lvl);
AC.KickStarter.sceneChanger.ChangeScene (mySceneInfo, true);
The problem I have however is with the player, I am unsure how to Reload the Player.
The reason I have to re-load the player because it has PM and Other scripts that gather certain intel on objects etc and store it in variables,
Once the scene is changed it remembers the last scene's variables which now are null, reloading the player(s) will help solve this issue.
I also think that perhaps the best way to do this for my scenario is to completely remove the player before loading a new scene, so when the new scene starts it starts with the player freshly?
If you can please let me know how I can do this via script and also via an action if it exists,
I tried using a Cutscene on Load and Start using the Player Switch action and replace player, however it does not solve anything, (Cannot switch player - already controlling the desired prefab.
)
I need your expertise
Thank you,
KZ
Comments
https://adventurecreator.org/tutorials/calling-custom-events
And was up and running in minutes. Hope it helps!