AI actors and triggers?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

AI actors and triggers?

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes but you need to set the spawnflags of the trigger so that it includes monsters :)
Image
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post 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:
Post Reply