So from what I’ve been hearing, I know there should be three properties. There should be a “WallCollide”, “CornerLeft”, and a “CornerRight” property. I know if the “WallCollide” property is true, the player just remains the same, but the gun raised up.
Then I know if there’s a corner nearby(containing a CornerLeft or CornerRight property), the property of either corner is true. So once those two properties are true, you press the shoot or aim button and it peeks over the corner.
I’ll try to improvise a script here:
scene = logic.getCurrentScene()
owner = logic.getCurrentController().owner
armature = scene.objects['PlayerRig']
wallCollide = cont.sensors['WallCollide']
if owner["CornerLeft"] == True:
armature.playAction(PlayerCornerPeek, 0, 5)
if owner["CornerRight"] == True:
armature.playAction(PlayerCornerPeek, 10, 15)