there are 2 places in the beginning where i want to start battles, since my main character is escaping prison. started one where the guard halts the player and a battle starts. I set the AI to hunt and a trigger starts the event but "start battle does not happen.
I searched for a tutorial but could not find anything, I may be missing something
What's the settings of your Start Battle node? You need to use a game object (e.g. an actor set up in the event settings) to either have a Battle component or be a combatant (e.g. spawned through a combatant spawner or using an Add Combatant component). Also, be sure to use a faction that is an enemy of the player for the battle/combatant.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
The guard was a combatant with the "Enemies" faction on. I was able to initiate battle by interacting, but not through events.I created a new actor and placed a battle scene there and it works, but the battle spots are up in the air. whan i attack the fall down to the ground.
Did a quick test, seems like using Start Battle with blocked player controls and a combatant game object isn't working, but using a Battle game object works - will fix this in the next update :)
The battle spots in your setup are checking the Default layer with a raycast - most likely there's either something on this layer blocking the raycast in the air, or there's nothing on this layer that can be hit, i.e. no ground found for the battle spots.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I figured the floor part out. I had a collider that i thought i erased called "QuestTrigger" that had the default layer on. So the midair issue is fixed
Todays update includes the fix for the Start Battle issue :)
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
You need to use a game object (e.g. an actor set up in the event settings) to either have a Battle component or be a combatant (e.g. spawned through a combatant spawner or using an Add Combatant component). Also, be sure to use a faction that is an enemy of the player for the battle/combatant.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Ill upload a video so you can see it
Chillback Digital | web page | Itch.io page | Youtube Page | Made With Unity Page
The battle spots in your setup are checking the Default layer with a raycast - most likely there's either something on this layer blocking the raycast in the air, or there's nothing on this layer that can be hit, i.e. no ground found for the battle spots.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Chillback Digital | web page | Itch.io page | Youtube Page | Made With Unity Page
Chillback Digital | web page | Itch.io page | Youtube Page | Made With Unity Page
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!