Page 1 of 1

AI actors and triggers?

Posted: Sat Aug 28, 2004 1:19 pm
by Grassy
Hy guys, sorry if this has been asked before. I did do a search and found a few ideas that generated more questions... :?

I am trying to detect an AI player on a trigger_multiple, the command isTouching has me pulling my hair out...
I have tried this:

Code: Select all

$axis_hotspot waittill trigger
  local.player = parm.other
  if(local.player==$albomber)
  {
      iprintlnbold_noloc "Crazy Boris has called an Artillery strike... Run for cover!"
      $albomber playsound boris_wohoo  
    }  
and this:

Code: Select all

$axis_hotspot waittill trigger
  local.player = parm.other
  if(local.player isTouching $axis_hotspot)
  {
      iprintlnbold_noloc "Crazy Boris has called an Artillery strike... Run for cover!"
      $albomber playsound boris_wohoo  
    }
When the AI actor is standing on the trigger nothing happens, but in the second example it printed and played when I ran over it.
Can AI actors interact with triggers?
Grassy

Posted: Sat Aug 28, 2004 1:37 pm
by jv_map
Yes but you need to set the spawnflags of the trigger so that it includes monsters :)

Posted: Sat Aug 28, 2004 1:48 pm
by Grassy
JV u are da MAN !! :lol:

Monsters.... hahah well I supose the Crazy Boris I have created is a kind of monster.. Thanks again.
Er... just a sec.... monsters is 3 isn't it? I dont use the editor at all, I just scratch together badly written scripts. :roll: