Cardia on 18/5/2015 at 09:09
So i have these 3 Ai creatures on a different isolate room and teleport trps are link to them, when they are teleported they don´t patrol, they will only patrol if i place them directly in the area with the trolpts,
is there a way to make them patrol when being teleported?
Yandros on 18/5/2015 at 10:57
1. Start them embedded in solid instead of air (a blueroom).
- or -
2. Don't set the Does Patrol property on them, and after you teleport them add the M-DoesPatrol metaprop.
The reason it doesn't work is that when the game starts, they look for a patrol route, can't find one, and so decide they won't go on patrol after all. Teleporting them doesn't make them start that process over again. Starting them in solid delays that process until after you teleport them (they are in air for the first time), and adding the metaprop also starts it.
Cardia on 18/5/2015 at 11:57
Quote Posted by Yandros
1. Start them embedded in solid instead of air (a blueroom).
- or -
2. Don't set the Does Patrol property on them, and after you teleport them add the M-DoesPatrol metaprop.
The reason it doesn't work is that when the game starts, they look for a patrol route, can't find one, and so decide they won't go on patrol after all. Teleporting them doesn't make them start that process over again. Starting them in solid delays that process until after you teleport them (they are in air for the first time), and adding the metaprop also starts it.
so if i placed them outside roombrushes they won´t move, right? its like they were in solid brush. i will try it :D
FireMage on 18/5/2015 at 12:20
The secret is a link named 'AICurrentPatrol' set to each IA to the closest PatrolPoint. And this link is created once the Property 'Patrol: Does Patrol' is ticked off! :thumb:
If the AI come from a blueroom, with the link already set and the patrol ability set, it will work! Or like Yandros said! The metaprop "DoesPatrol" send after the teleportation to add the ability and get the AI to have the right patrol route! :)
If the AI come Although from another patrol route, doing a conv or using a script that will remove the "AICurrentPatrol" to send a new one will do the trick perfectly too! ;)
But according to your situation, Yandros has already said the right solution! x)
I just wanted to send a few tips that may interest you later if you want to do something more complex with patrol route! ;)
ZylonBane on 18/5/2015 at 12:45
Quote Posted by cardia1
so if i placed them outside roombrushes they won´t move, right?
He didn't say anything about room brushes.
Cardia on 18/5/2015 at 12:46
it works, when i place the ai creatures in solid areas :D
Problem fixed
Yandros on 18/5/2015 at 13:41
Good! One thing to note however about that approach is that in the past, I have had problems with an AI who starts in solid not wanting to do conversations, although I've not seen that recently so perhaps NewDark has fixed it somehow.
Cardia on 18/5/2015 at 15:01
Quote Posted by Yandros
Good! One thing to note however about that approach is that in the past, I have had problems with an AI who starts in solid not wanting to do conversations, although I've not seen that recently so perhaps NewDark has fixed it somehow.
yes i was also afraid to have problems, but newDark accepts it
john9818a on 20/5/2015 at 02:43
It must be fixed because I have 12 AI starting out in solid but later are in three simultaneous conversations with three additional AI. Although I'm surprised the conversations work fine every time.