How can i respawn ai

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
Omega
Private
Posts: 3
Joined: Thu Nov 23, 2006 5:00 am

How can i respawn ai

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

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