I have a routine where a nurse is called over to an injured player and passes an object, I would like her to stop about 100 units directly in front of the player. I have seen something that might be what I need ages ago but cant find it now.. And I have read the AI classes docs so many times and still cant find what I need... Here is what I am doing at the moment, but it's a bit dodgy at best.
Code: Select all
if (vector_length (local.player.origin - self.origin) >= 200)
{
// player is too far away so run over there
wait 1
self upperanim pass_canteen_start
self waittill upperanimdone
self runto (local.player.origin + (0 100 0))
self waittill movedone
self upperanim pass_canteen_end
}
