Godot 4.3
[Export] doesn’t seem to make teh variable appear in the editor for some reason
the script script is indeed attatched to the object I’m looking for the variable in.
using Godot;
namespace SpetzV6.FrameWork;
public partial class HazardOBJ : Area3DOBJ
{
[Export]
public float KnockBack;
public override void _Ready()
{
base._Ready();
PlayerEnterEvent += (Player) =>
{
Player.StateMachine.SetState(new PlayerStates.Hurt(Player,this));
};
}
}