News › Forums › RAIN › Sample Projects, How To, and Code › Using Waypoint routes and paths!
Tagged: pathfinding, waypoint
This topic contains 26 replies, has 5 voices, and was last updated by CodersExpo 1 year, 3 months ago.
March 20, 2022 at 6:37 am #10241
I have updated the Wiki Waypoints section with some example projects that might help some new comers. Check out http://rivaltheory.com/wiki/doku.php?id=environment:waypointcollections:start
Once you review the information and try the projects on each sub page check out this project that combines both Waypoint patrol and Waypoint navigation paths for a Patrol/Attack & Search example. http://rivaltheory.com/?ddownload=10240March 20, 2022 at 2:23 pm #10266
This is awesome! You guys should provide some feedback to CodersExpo on what you want to see on the Wiki. He will fill it out according to demand as well as his own judgement.
Thanks again CodersExpo!
-JesterMarch 21, 2022 at 5:42 pm #10373
I think itâ€™s great that CodersExpo is adding more. I personally like seeing those written examples. I know the Attack&Wander video is out there, but it would be nice to have a written example of some custom Actions.
For instance a few that come to mind:
- Attack (called AIDamageEnemy in the tutorial) and how to link out to a different script thatâ€™s ready to receive damage
- Wander location (called AIChooseWanderLocation in the tutorial)
- How to access current health to display enemy GUI
- How to properly use Tree Binding and what are good scenarios to use them for
- How to properly react to getting hit
- How to alert friendlies to the AIMarch 22, 2022 at 2:36 am #10413
Great suggestions Redhawk. Thank you for the feedback. Though everyone would likely have a different approach to accomplishing each of these tasks, I will keep them in mind as I try to construct useful demos.
Iâ€™ll make sure to get some examples that demo RAIN features such as using extensions, dynamic loading of behavior trees, save/load memory settings, accessing custom entity settings, custom sensors that can act as a network to communicate to surrounding AI..etc. How these are used within a persons game design is entirely up to each individual. I hope this is what you would like to see and please let me know if there is anything else I can do to improve your experience with RAIN.
Thanks!March 22, 2022 at 2:49 am #10414
CodersExpo, totally understand. Just suggestions is all. BTW - I used your example and made it work with Core GameKit (formerly KillerWaves) with no extra scripting. Such fun. I have it so that when the hand (from your punch animation) hits the Enemy, the Enemy receives damage and eventually explodes, then respawns in a random location and the attacker finds it again. Fun little test. Iâ€™m excited in this little test because it means that I can avoid having to create new Custom Actions by just using trigger colliders and Core GameKit plus RAIN. Wow!March 22, 2022 at 5:35 am #10420
Explosions!! Thatâ€™s what Iâ€™m talking about. Right on. ðŸ˜‰March 24, 2022 at 11:45 am #10574
CodersExpo - my Navmesh and Waypoints are White and I canâ€™t change the color (even though I change it in the inspector, it stays white). Iâ€™m testing your project on a grander scale so Iâ€™m starting with your project (since Iâ€™m not good at importing/exporting RAIN pieces). Any idea why itâ€™s white?
March 24, 2022 at 3:25 pm #10583
Try re-importing RAIN. It might help.March 24, 2022 at 4:49 pm #10590
Worked for the NavMesh but not for the Waypoint Network or Route. Those are still white even if I add new ones. Odd.March 24, 2022 at 5:21 pm #10593
Seems I have the same issue with this one. I tried re-uploading and when I download it same same.
The functionality is there, which is good, but it does seem to loose settings on the waypoints. Another thing I saw was the waypoint path is hovering above the ground. I had to select all and click ‘drop to surfaceâ€™. Still no colors. Strange.
Thanks for the heads up, Iâ€™ll mess with it to see what I can do.March 24, 2022 at 5:25 pm #10594
Ok, so what I did was, re-import the RAIN package. Then ran the scene and clicked on the ‘Sceneâ€™ window. I saw the colors were changed and stopped the game. Whalla…I can now edit the colors. Very crazy man. It seems to work now though.March 24, 2022 at 5:42 pm #10596
that was strange. Thanks. FYI - seems to be working fine on a very large terrain and RainMesh (1200). I did have to put a RigidBody (with Gravity and all constraint except Y Position) and a Capsule Collider.March 27, 2022 at 7:49 pm #10810
CodersExpo - do you mind if I use your Example in a short Video tutorial?March 27, 2022 at 8:33 pm #10813
Not at all, by all means share share share!! ðŸ˜‰ Love to see it too!March 28, 2022 at 2:33 am #10830
You must be logged in to reply to this topic.