AIs can't open portcullis, yet they can in the Ambush OM. - by sNeaksieGarrett
sNeaksieGarrett on 12/7/2013 at 16:38
So yeah, I looked in Ambush and there's a gate that's locked. I turned it from locked to unlocked, and watched as a cop frobbed the gate and came through. Also, it was FrobInert so Garrett couldn't open it.
Now, I set the very same up in my mission in D2 1.18, FrobInert, Locked: False. I have a haunt type AI that sees me on one side of a gate and comes running over, but instead of opening the gate he just keeps running into it. What gives? Is there something wrong with my mission? I don't understand why it worked in the OM but not in my mission.
I tried creating a new portcullis that wasn't flush with the two rooms and was instead just in the larger room where the AI was. That didn't matter, still didn't work. However, interestingly, if I allow World Frob for Garrett then the AI can go through it. I don't want Garrett to be able to frob the gate itself, because the gate is supposed to be hooked up to a lever instead.
Sensut on 12/7/2013 at 17:38
Quote Posted by sNeaksieGarrett
So yeah, I looked in Ambush and there's a gate that's locked. I turned it from locked to unlocked, and watched as a cop frobbed the gate and came through. Also, it was FrobInert so Garrett couldn't open it.
Now, I set the very same up in my mission in D2 1.18, FrobInert, Locked: False. I have a haunt type AI that sees me on one side of a gate and comes running over, but instead of opening the gate he just keeps running into it. What gives? Is there something wrong with my mission? I don't understand why it worked in the OM but not in my mission.
I tried creating a new portcullis that wasn't flush with the two rooms and was instead just in the larger room where the AI was. That didn't matter, still didn't work. However, interestingly, if I allow World Frob for Garrett then the AI can go through it. I don't want Garrett to be able to frob the gate itself, because the gate is supposed to be hooked up to a lever instead.
As I remember you need a lever linked to the portcullis (even hidden in the blue room if you don't need), and the AI will frob that lever then the grate will open.
sNeaksieGarrett on 12/7/2013 at 18:55
There is a lever hooked up to the gate. I have that set up for Garrett since I put FrobInert on the gate.
I just tried adding a second lever CD linked to the gate but it didn't work.
I realized I had a relaytrap hooked to the portcullis instead of a direct CD link. My mistake, sorry. I also recalculated pathfinding just in case. Works fine now!
MysteryMan on 12/7/2013 at 18:56
Quote Posted by Sensut
As I remember you need a lever linked to the portcullis (even hidden in the blue room if you don't need), and the AI will frob that lever then the grate will open.
Or, an unrendered lockbox at waist height with lock link from the gate to the lock. Ai is culpable for a key.
Edit: The nice part about this is that the ai can use the unrendered lockbox, but the player can't.
The ai's are programmed to use the locklink flavor over a cd link.
Yandros on 13/7/2013 at 03:17
Quote Posted by sNeaksieGarrett
I realized I had a relaytrap hooked to the portcullis instead of a direct CD link.
Doing this intentionally is actually a good way to prevent AI from opening a door/gate that Garrett can open/close with the lever. In case you ever need that.
john9818a on 3/11/2015 at 02:07
If you have a lever cd linked directly to a locked portcullis and add the FrobInert metaproperty to the portcullis, AI's can't open the portcullis nor will they try to run through it. The player can still frob the lever to open the portcullis and the AI can still pass through once the portcullis is open. I saw this method used in Undercover and tested it in a two room mission and it saves an object by not using a relay trap. :)
Nameless Voice on 4/11/2015 at 23:17
Why are you using 1.18?!
Tannar on 5/11/2015 at 02:38
The OP was in 2013.
R Soul on 5/11/2015 at 02:41
The OP was made 10 months after NewDark was released, so it's a perfectly good question.
Tannar on 5/11/2015 at 03:44
Perhaps so, but it didn't seem that he'd realized the date of the OP since his question was in the present tense.