Hope someone can PLZ help me with this

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

explosion:
$trigger waittill trigger
waitthread global/exploder.scr::explode 1
end
Live to map, not map to live.
-mohaa_rox, .map
moderator
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

sorry it should be

$my_ai exec global/aimat.scr $window
User avatar
Wolfish King
Corporal
Posts: 48
Joined: Wed Dec 18, 2002 10:43 pm
Location: The Netherlands

Post by Wolfish King »

And maybe you can give your friendly AI a target? (the wall)
Wolfish King is th@ Master!
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Post 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
...prepare for your finest hour...
Post Reply