drelee
Junior vMember
Posts: 46
|
Post by drelee on Jun 8, 2022 20:31:41 GMT
Using the shooter 2.6.2 with cover addon Im finding several issues spawning my player using the Vgamecontroller script and also with my custom made scripts. My main character or player works exactly fine in game mode, with the character placed in the hierarchy. However, when I attempt to spawn the same player into the scene using its prefab, the characters inputs/ alignments are all off. For example, the characters head is automatically looking in the wrong direction, and when i shoot a weapon it does not align with the Crosshairs, character points in a completely different direction, and also the movement inputs are off(when pressing w, the character moves sideways instead of forward,m etc.), and the mouse look movement stops working as well. This only happens when spawning my character, and the character works fine if i place it in the scene hierarchy and press play. I tried this in 2 separate scenes and the problem happens in both circumstances.
|
|
drelee
Junior vMember
Posts: 46
|
Post by drelee on Jun 9, 2022 15:40:05 GMT
My issue was, I was trying to spawn my player randomly into the scene at runtime, like in the Lyra game for Unreal. I now see the vgamecontroller is more for spawning players at checkpoints which i have working now that i understand better. So, I mam happy about this, but i guess ill keep exploring how to spwan my player randomly using the vgamecontroller
|
|