Page 2 of 2
Posted: Sat Mar 01, 2003 2:16 am
by mohaa_rox
explosion:
$trigger waittill trigger
waitthread global/exploder.scr::explode 1
end
Posted: Sat Mar 01, 2003 10:46 am
by bdbodger
try this
ai_shoot_window:
$my_ai exec global/disable_ai.scr
$my_ai turnto $window
$my_ai lookat $window
$my_ai exec global/aimat.scr
$my_ai exec global/shoot.scr
$my_ai exec global/enable_ai.scr
end
just give the ai a bazooka and choose what point to exec this thread or make him a spawner give him a $targetname enemyspawner and a #set number of lets say 3 add a pathnode near the window $targetname enemyspawnerdestination give it the same #set number . add exec global/ai.scr to the top of your script and use this thread
ai_shoot_window:
exec global/ai.scr::spawn 3
wait 3 // wait for him to get to destination
$enemyspawner exec global/disable_ai.scr
$enemyspawner turnto $window
$enemyspawner lookat $window
$enemyspawnery_ai exec global/aimat.scr
$enemyspawner exec global/shoot.scr
$enemyspawner lookat null
$enemyspawner exec global/enable_ai.scr
end
it is a more complicated if you have more than one spawner in your map but can be done then too if you want I can post a script that will do it in that case too . you can make any ai a spawner not just ones whith that targetname you just need a different method
Posted: Sat Mar 01, 2003 11:02 am
by bdbodger
sorry it should be
$my_ai exec global/aimat.scr $window
Posted: Sat Mar 01, 2003 3:54 pm
by Wolfish King
And maybe you can give your friendly AI a target? (the wall)
Posted: Sat Mar 01, 2003 11:54 pm
by bdbodger
well what you can do is use a infopath node give it a targetname $my_aim_spot and use it as your aim point exec the shoot script and make the wall an exploder useing the exploder script . then shoot and have the wall explode .
$my_ai exec global/aim_and_shoot.scr $my_aim_spot
thread global/exploder.scr::explode 1
Posted: Sun Mar 02, 2003 3:23 pm
by LT.BARNES
ok thanx...
but i think it is the map part that i am havin probs with cause it never works.
can some one make a lil room with the player in a wall explodin after a lil mount of time. PLZZZZZZZZzzzzzzzzz