News › Forums › RAIN › Sample Projects, How To, and Code › Using Waypoint routes and paths!
Tagged: pathfinding, waypoint
This topic contains 27 replies, has 6 voices, and was last updated by kabali2413 4 months, 2 weeks 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.