Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change location programmatically? #1

Open
Irthael opened this issue Nov 17, 2024 · 6 comments
Open

change location programmatically? #1

Irthael opened this issue Nov 17, 2024 · 6 comments

Comments

@Irthael
Copy link

Irthael commented Nov 17, 2024

I would like to know if I can spawn an npc and give a different location to each one, or on the contrary I would like it to follow the player, (like the basic Ai Move to and changing the destination for target actor).

@haktan313
Copy link
Owner

Yes you can give each npc different position. also for now you can't use it with behaviour tree tasks like move to but I will do that too in the next times. Follow me, when I made it will can see that. for now unfortunately you can only give vector position.

@Irthael
Copy link
Author

Irthael commented Nov 17, 2024

How can i do that?
The component HMoveTo dont let my change destination or set actor destination or im blind and dont see it

@haktan313
Copy link
Owner

I haven't tried such situations, but I guess by creating vector variables and setting them to the component target position when your npc reaches the previous position. For example, initially give position A to the target location of the component, and when it reaches it, set the other variable, position B. However, you may not be able to do this in blueprint, it can be done in C++. I will set it and upload it again

@Irthael
Copy link
Author

Irthael commented Nov 17, 2024

I forgot to start by saying: I just looked in blueprint and did not see the option.
If you could add it I would appreciate it.
I take this opportunity to say: could you create the component for version 5.4? I would be very grateful, (my c++ knowledge is basically zero T_T).

@haktan313
Copy link
Owner

I did the first thing you said, but I couldn't do the 5.4 upgrade for now.

@Irthael
Copy link
Author

Irthael commented Nov 19, 2024

Do you know an estimated date when you will be able to upgrade to version 5.4?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants