Lord Taffer on 24/6/2022 at 09:13
I'm trying to set up an event in a small city area: when the player walks into a certain area (roombrush) AI should come out from a small room (most preferably from behind a locked door) and start patrolling the street.
I've used PatrolTrap in T2, but it seems there's no such trap in T1. So, what would be a good way to set up an event where the player gets in a certain room (TrigRoomPlayer) and then AI starts patrolling the street?
I've already used TeleportTrap but it doesn't seem to work properly for this event. I wanted the AI to start the patrol when it teleports into the street, but the AI won't patrol.
R Soul on 24/6/2022 at 18:07
Teleporting will work if the AI is in the solid void until the event is triggered.
RippedPhreak on 25/6/2022 at 03:08
You can also have the AI just standing behind the door but without the patrol property. Then you set up a conversation to be triggered when the player enters a certain area (most likely via a concrete room brush with TrigRoomPlayer script on it).
In the conversation (let's assume the AI is named Dave), you would put the following operations:
Add/Remove Metaproperty
Add
M-DoesPatrol
Dave
Assuming Dave is standing on a TrolPt that's linked to other points as usual, he should start patrolling at that point. Don't forget to give Dave a key to the locked door....
Lord Taffer on 25/6/2022 at 14:37
Thanks for the tips both of you!
Putting AI into solid void made the TeleportTrap method work. I also tried the conversation method but the AI didn't start to patrol. I haven't set up a conversation before and most likely I did some basic mistake.