You can do the same thing with one C# script, and the rest in playmaker, without downloading any other package. Watch the official Unity tutorial on pathfinding, copy the C# script they go through called "SampleAgentScript". And simply use the "Set Property" action in playmaker, the rest is up to you.
The script is very simple, no real knowledge of C# is required. When trying to affect the script using playmaker, use the "Object" variables and set the object to "UnityEngine/Transform", now simply use the "Get Transform" and set the output to the newly created "Object" variable. Its all down to logic in the end, rather than anything else. I made an AI that can patrol designated areas, when spotting me he will give chase, when lose sight he will start a search, and if he still cant find me he will continue patrolling the designated area.
Thanks for this tutorial! :) I have an avatar that I want to move from one position to another and then back to the original position. I tried this tutorial and I can make the avatar move from one place to another, just like in the tutorial, but it did not work when I tried to move it back to the original position. Do you have any idea on how to go about to do this? I would be really grateful for an answer :) Kind regards Anya
Maybe try to store the last position on a vector 3 variable, maybe call it "LastPos". and when you want to go back to the last position, have the "AI" read from the vector 3 variable "LastPos"
i dont know why, and probably is a silly question, but the enemy is passing through walls, i thought probably because the walls were not static, but they are, and also have a collider, any idea?
+ZeldafreakNEO You have to download them to your project. It is on the Playmaker Wiki under Add-ons. Heres the link hutonggames.fogbugz.com/default.asp?W1174
The best and simple aI movement!
You can do the same thing with one C# script, and the rest in playmaker, without downloading any other package. Watch the official Unity tutorial on pathfinding, copy the C# script they go through called "SampleAgentScript". And simply use the "Set Property" action in playmaker, the rest is up to you.
The script is very simple, no real knowledge of C# is required.
When trying to affect the script using playmaker, use the "Object" variables and set the object to "UnityEngine/Transform", now simply use the "Get Transform" and set the output to the newly created "Object" variable.
Its all down to logic in the end, rather than anything else.
I made an AI that can patrol designated areas, when spotting me he will give chase, when lose sight he will start a search, and if he still cant find me he will continue patrolling the designated area.
very easy to understand
Thanks for this tutorial! :) I have an avatar that I want to move from one position to another and then back to the original position. I tried this tutorial and I can make the avatar move from one place to another, just like in the tutorial, but it did not work when I tried to move it back to the original position. Do you have any idea on how to go about to do this? I would be really grateful for an answer :)
Kind regards
Anya
Maybe try to store the last position on a vector 3 variable, maybe call it "LastPos". and when you want to go back to the last position, have the "AI" read from the vector 3 variable "LastPos"
i dont know why, and probably is a silly question, but the enemy is passing through walls, i thought probably because the walls were not static, but they are, and also have a collider, any idea?
What about flying objects
Sorry, but I do not know how to make AI for flying objects
OfficiaFoxDeltaGames
ok thank you
THANKS
Thanks man
I dont have the Action Set Agent. Were do I get it from?
+ZeldafreakNEO You have to download them to your project. It is on the Playmaker Wiki under Add-ons. Heres the link hutonggames.fogbugz.com/default.asp?W1174
from ecosystem - addon manager for playmaker