Page 1 of 1

How can i respawn ai

Posted: Thu Nov 23, 2006 5:10 am
by Omega
Can anyone help me. I want to know how to respawn AI in my maps for a bit of bloodbath

Iv searched along time for this

Posted: Sun Nov 26, 2006 10:59 am
by jv_map
Have to do it with scripting...

Just a basic example.

Code: Select all

main:

  level waittill spawn

  thread respawner [model] ( x y z ) [yaw]
  thread respawner [model] ( x y z ) [yaw]
  thread respawner [model] ( x y z ) [yaw]

end

respawner local.model local.origin local.yaw:

  while(1)
  {
    local.b = spawn Actor model local.model origin local.origin angles (0 local.yaw 0)
    local.b waittill death
    wait 2.0
  }

end