Hi guys!
In the video, he explain about on how to create a compass and create waypoints icon that can be attached to the actors.
The thing is, I’ve spent weeks, with try and error, to attach the waypoint (Icon) to my objective actors, so that the players will have some idea on which way they have to go. The Idea that I wanted is something like Vampyr or Skyrim game styles. It keeps on giving me errors in the blueprint. At the same time, I’ve tried to watch another videos that have something to do with the blueprint. But, most of the videos they used arrays to attach multiple objective actors. It’s good, I like the idea of using the arrays. Maybe I’ve miss something…
The problem is, how do I attach the waypoint Icon with multiple objective actors?
we are gonna need more information here. what videos are you talking about and what do your blueprints look like. you mention waypoint actors but those arent something built into the engine(unless you mean target points) so we have no idea what they are.
in the video he isnt actually adding anything to his actors hes just getting a reference to the actors in the level via the get actors of class. each item in the level that matches the type from the get actor is added to the array then he just gets the index. while his methods work it seems like a lot to have connected to tick.
What errors are you getting when you tried to implement this before?
you have to reference the actors somehow. what he does in the video is get references to the actors then stores then in an array. if you want to change the content of the array you will need to change the method of your search. so you could change from looking for actors of the marker class to say looking for actors of the character class. another method would be to use something like tags, for example use the get all actors with tag node. this would return any actor that has the tag your looking for. another method would be to get a reference to specific actors in the scene in the level blueprint and make them into an array there and copy that array to your widget. the issue with this method is trying to get a reference to the widget so that you could copy the array information to it.
Arrays are just a container for information. think of them as something that can hold multiple variables of the same type. like a jar that can only hold pennies (a type of us currency if your from elseware). now for this script to work your array needs to contain items from the world to get the direction to. this is the reason you need references to actors.
i dont know any videos since its not too hard of a concept but maybe i can still help a bit. do you have a certain class of actor your looking to have as waypoints? also where are you creating the widget and adding it to the screen (i would guess on the character or controller)?