lots of ways to do this,
- the player could keep a reference to the turret they spawned.
- the turret can have a ref to the owning player controller and expose it on spawn
- since your using abilities you might have some sort of ability manager that send input to the ‘selected’ ability