Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 06.10.2005, 13:51   #1
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default AI - NPC with limited life time

Hi,

i am looking for AI in order to implement for some NPC a limited "time of life", i mean when that NPC is spawned (manually or not) the NPC will automatically disappear (or die) after a precised time...

Any idea is welcome, i dunno if it is possible
krapno is offline  
Old 06.10.2005, 14:14   #2
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default

use toma teleport AI
and make it teleport to a dead land place
hamidouch is offline  
Old 06.10.2005, 14:15   #3
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

[php:1:a60f5d472a]
class name : (null)
handler 13 // CREATED
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

shift_sp 1
push_const 1
push_const 19000 // time in ms
func_call 28 // func[AddTimerEx]
shift_sp -2
shift_sp -1
handler_end

handler 12 // TIMER_FIRED_EX
variable_begin
"timer_id"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

push_event // timer_id
push_const 176
add
fetch_i
push_const 1
equal
branch_false L2
L1
shift_sp 1
func_call 175 // func[Despawn]
shift_sp -1
L2
handler_end

class_end
[/php:1:a60f5d472a]
Sauron is offline  
Old 06.10.2005, 16:30   #4
krapno
Архивный участник
 
Join Date: May 2005
Posts: 368
Default

tx a lot Sauron, i am going to test it soon
krapno is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 16:07.