Code:
class 1 spawn_casts_1_spell : default_npc
handler 13 17 // CREATED
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // myself
push_const 704
add
fetch_i
push_const 3000
push_const 1000
func_call 184680487 // func[AddTimerEx]
shift_sp -2
shift_sp -1
handler_end
handler 12 540 // TIMER_FIRED_EX
variable_begin
"timer_id"
"i0"
"i1"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end
push_event // timer_id
push_const 236
add
fetch_i4
push_const 3000
equal
branch_false L12899
L12899
handler_end
class_end
Code:
class spawn_casts_1_spell : default_npc
{
handler:
EventHandler CREATED()
{
myself->AddTimerEx(3000,1000);
}
EventHandler TIMER_FIRED_EX(timer_id,i0,i1)
{
if( timer_id == 3000 )
{
}
}
}
here's a c4 AI for you to play around, put what you want the summon to do in timer_id == 3000, remember to despawn after that.