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
How can i respawn ai
Moderator: Moderators
Have to do it with scripting...
Just a basic example.
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
