Dale_ on 24/9/2014 at 08:49
Hey there, here's something that's been boggling my mind lately and I'm hoping you could help me resolve it:
I'm trying to make an AI patrol through a corridor, stop in the middle to look at an object (say, a painting), stand there with arms behind his back, admiring the art, and then walk on.
I've made a patrol with trolpts and one trolpausept in front of the painting, linked them together and added AIWatchObj to the trolpausept making the guard wait for 10 seconds while playing motion Conv 9. The problem is that Conv 9 only seems to last a few seconds and the guard just keeps playing it over and over again, going from idle to arms behind back, to idle and so on.. Is there any way to have the AI start Conv 9 motion, then freeze it in the middle, hold it for 10 secs and then release it, have him finish the motion and move on? I tried doing this with Freeze AI but the snag with that is that the AI will become oblivious to anything that goes on around him, it would have to be a hell of a painting to have that kind of effect :)
Thanks in advance!
AntiMatter_16 on 24/9/2014 at 22:03
Perhaps you could create a metaproperty containing the "Timewarp" property, and add it to the AI while playing the motion, the remove it for a bit.
Yandros on 25/9/2014 at 01:50
That should work, although you need to be sure to remove it on the alert response or else he might be stuck in slo-mo if he spots the player while playing the motion. Honestly, the proper solution to this is for someone who knows how to make an alternate of Conv 9 that lasts longer and provide an updated motion DB.
john9818a on 25/9/2014 at 04:54
Would it be possible to simply copy one frame of the motion, one with arms behind back, and paste it repeatedly to make that part of the motion last longer?
gigagooga on 25/9/2014 at 05:49
yes
Yandros on 25/9/2014 at 11:41
I don't know enough about the motion schemas to say, it seems like you could just up some duration or delay, or slow down a speed, or something as opposed to pasting something repeatedly.
Shadowspawn on 25/9/2014 at 13:08
If you build your own motion database, you can set the speed on a particular motion. So you can slow it down or speed it up.
Hmmm - another thought. There is a speed setting for AI, I think Haunts are sped up normally.
In the AIWaitchObj link, could you set the AI's speed to slow down for the duration of that particular motion? Then set it back up?
It could cause a problem if the AI gets alerted during the slow down - but you could probably fix it via the alert settings.
Yandros on 25/9/2014 at 16:58
Yeah, that's the time warp property, and is basically what AM_16 and I combined to suggest above. I really should dig into motions more and learn how to at least edit the stock motions.
Dale_ on 25/9/2014 at 21:32
Thank you all for the suggestions, I'll try them out!
Yandros on 23/12/2014 at 02:12
Dale_, I found a solution to this if you're still looking for one. If you use Shadowspawn's General Motion Database with all the extra motions (and there's no reason not to), you can have an AI Wait for any length of time you want and use Conv 57 for the motion instead of Conv 9, and his arms will remain behind his back the whole time.