Download

Getting something from game world

Hello everyone,

Maybe it was asked before, maybe it is really stupid question… but I want to ask how to get object from the game world and modify it’s properties. Say there’s a waypoint in the game world, i need to access it to get it’s position how would I do it? What if there are multiple waypoints? I know I need to use Cast<> but not sure how, can someone explain please?

Hey man be sure to tell Rama thank you.

https://wiki.unrealengine.com/Iterators:Object%26_Actor_Iterators,_Optional_Class_Scope_For_Faster_Search

Try that. Then of course use the GetActorLocation() method. :). Good luck!