Single Line Trace for Objects in C++

I am trying to figure out how to translate this node in my blueprints to C++:

After some jiggery pokery trawling through UE4’s documentation, the method that maps to this seems to be this:


I also located the documentation [here][2].

What I am confused about would be the following:

  1. What is it looking for in the WorldContextObject parameter/argument?
  2. I noticed that in the source code, it is calling a method marked as “DEPRECATED”, does that mean there is a more up to date method to accomplish this?
  3. In blueprints, we have the option of just making an array and selecting what we want, in my case, it is “World Static”. What is the C++ equivalent of this here?

Pardon my questions as I am very new to game development and hope to learn from the best here :slight_smile:

Managed to resolve it with some help from the forums, referred to Rama’s wiki entry here : A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

Should be a good primer and guide to this kind of thing.