Unna Oertdottir on 18/12/2016 at 09:11
Basically, yes. But you might want to remove the metaproperty on the guard when the player is entering an area. You can do this with a conversation or an aiwatchobj-link. A room brush (trigroomplayer-script) could start the conversation.
-set up a concrete room brush with trigroomplayer-script.
-set up a conversation marker (trapconverse-script).
-CD link the room brush to the conversation marker
-The guard is also the conversation actor. You know how to set up a conversation.
-In the conversation menu choose "Add/Remove Metaproperty"-->Remove, next line: M-Front Gate Guard
Cardia on 18/12/2016 at 09:45
Thank you Unna, i don´t want any conversation, i just want the ai creature to protect his/here property.
Cardia on 18/12/2016 at 15:31
Thanks Unna, but i still can't set it properly an ai to turn aggressive when entering in his area.
is there another viable method?
Random_Taffer on 18/12/2016 at 15:56
Use a conversation, man. It's easy. AIWatch object for player intrusion in that room brush and have the convo remove the metapropery for front gate guard. Or if it's a small area with one way in, set up a fence that blocks ai vision but is invisible and you can move through and don't bother with the metaproperty. Lots of ways to do this.
Cardia on 18/12/2016 at 15:59
Quote Posted by Random_Taffer
Use a conversation, man. It's easy. AIWatch object for player intrusion in that room brush and have the convo remove the metapropery for front gate guard. Or if it's a small area with one way in, set up a fence that blocks ai vision but is invisible and you can move through and don't bother with the metaproperty. Lots of ways to do this.
i like the invisible fence idea, how do i make the fence invisible to player and at the same time an obstacle for the ai vision? imean i know how to make objects invisible, but will that be like an obstacle for the ai creature vision?
R Soul on 18/12/2016 at 17:01
Quote Posted by Random_Taffer
Use a conversation, man. It's easy. AIWatch object for player intrusion in that room brush and have the convo remove the metapropery for front gate guard.
Why the conv? Why not just use the link to do it?
Cardia:
Transparent object:
Create a marker.
Renderer > Render type: Normal.
AI > Utility > Blocks AI Vision: True
Resize it so it covers the entrance.
Renderer > Transparency (alpha): 0
The disadvantage is that you can't have your AI shout a warning, or have any kind of delay.
Unna Oertdottir on 18/12/2016 at 17:12
Quote Posted by R Soul
Why the conv? Why not just use the link to do it?
You need to tell him how to do it. Even a conversation seems too difficult.
Load NVScripts, put NVMetaTrap on the guard. CD link concrete room brush (or whatever) to guard.
To remove the metaproperty M-Front Gate Guard.
Design Note
NVMetaTrapMeta="M-Front Gate Guard"; NVMetaTrapOff="TurnOn"; NVMetaTrapOn="null"
Random_Taffer on 18/12/2016 at 17:23
One problem with the fence thing is that it will work the other way too. Also if the AI heard something outside and is alerted, they'll investigate.
R Soul on 18/12/2016 at 18:51
That's a good point, which rules out the invisible barrier idea.