-
Notifications
You must be signed in to change notification settings - Fork 152
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
Video tuto ? #172
Comments
Hey @kevld ! Unfortunately, a video tutorial is on my todo list, but I didn't find the time to create some yet. Do your units belong to different players, and are these players in different teams? |
Hi @npruehs, thanks for answering me :) Here is what I did After that in the level blueprint, i did this : When I Test it, I am able to move my unit, and not able to move enemy unit. this is OK. But my unit is not attacking, The issue order passed is always a move order, even if I right click on the enemy unit Here is my character's components (the character inherits from the UE4's Character class) : I tried to add the Relationship.Hostile tag but it did not help The main problem is located between the keyboard and the chair... I'm pretty sure I miss something basic |
Get Player Controller with player index 0 works for you, and returns a valid player controller, because it's a built-in helper function that just takes an index returns a player controller - as expected. Get AI Controller takes an actor as argument, and is supposed to be passed a pawn controlled by an AI controller. This has originally been built by the engine team for getting the AI controller of a bot in Unreal Tournament. Thus, your attempt in passing a player start and getting its AI controller failed. The same is true for accessing the player controller with index 1 and passing it to Get AI Controller: Player controllers and AI controllers are mutually exclusive - in fact, they both extend the same base class: Controller. Thus, in fact, even if any of your attempts to get an AIController had been successful, casting the result to your player controller blueprint is deemed to fail. I recommend reading up on the engine basics, more specifically, its game framework: https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/Framework/ |
Hello @npruehs ,
Your plugin is very interesting and usefull, I discover it few days ago and I am testing it.
Is there an existing video which explains how to use the plugin ?
I think there is something I don't understand with AI units and AI players. My units are moving but I'm unable to make them attack other units (I double check gameplay tags but maybe I miss something)
The text was updated successfully, but these errors were encountered: