How to change Spring Arm length Based on if player is in Area3D Node

Godot Version

4.6 RC 1

Question

I have a 3rd person character in its own scene and i was wondering how or if i could change the property of my spring arms length if the player is inside a area3d node and if they leave it it goes back to its normal state.

Heres my player scene of how my player is set up

If i didnt explain it better enough im wondering how to change spring arm length in code in my game scene and it work even if my player scene is seperate

Use area’s body_entered and body_exited signals.

1 Like

Will i still be able to communicate with the spring arm lengths even though its in a different scene?

The collision signal emits body, the other colliding object. you can detect if body is your player and from there access any variables and nodes that are a part of the player.