Page 1 of 2

Hope someone can PLZ help me with this

Posted: Fri Feb 28, 2003 1:26 pm
by LT.BARNES
SOME ONE PLZ PLZ PLZ HELP ME WITH THIS...

It will make my new level Gr8. and a good feel to play...

here is wat i want to do... i hope it is easy... ok..

I want the player to be locked in a room (not sayin where.)

and u can't get out...

Ok there is a window in the room u r in... Now out side a battle starts.

I want suddenly a granade to fly through the window and break it and blow the window up...OR OR OR..

i want a bazocca to blow up the window and part of the wall up.

i don't want the player to do this, i want an AI friendly to do this

Posted: Fri Feb 28, 2003 2:32 pm
by mohaa_rox
Create an AI with targetname. Then in your script put:

$ainame setaimtarget $windowname

Then maybe try this, i haven't tried it:

$ainame setaimtarget none

after u fire the bazooka.

Posted: Fri Feb 28, 2003 2:47 pm
by LT.BARNES
ok i am goin to quickly try this... thanx

Posted: Fri Feb 28, 2003 3:17 pm
by LT.BARNES
That didn't work man...

hmm

well i want to be stuck in a room, and then the wall will explode suddenly.

how do i do this?

Posted: Fri Feb 28, 2003 3:27 pm
by mohaa_rox
Do you want anybody to fire it? If not, then make exploders. In your script:

thread explosion

explosion:
wait xxx //how long to wait?
exec global/exploder.scr::explode1
end

Posted: Fri Feb 28, 2003 3:45 pm
by LT.BARNES
OOooo thanx...

well yea i want someone to fire at it...but it didn't work.. so i could have like a battle out side and the wall blows up


THANX i will go try now

then get bk to u

Posted: Fri Feb 28, 2003 4:56 pm
by LT.BARNES
it doesn't work man??

hmmm

dam

Posted: Fri Feb 28, 2003 6:09 pm
by Butch
what if you walk thru a trigger, the wall explodes and when u look there is a friendly with a bazooka

Posted: Fri Feb 28, 2003 7:18 pm
by jv_map
Use 'aimat':

$mybazookaguy aimat $mywindow
wait 0.5
then uhm, launch a bazooka :roll:
(might need to find an appriopriate animation for this)

or try:
$mybazookaguy weaponcommand mainhand fire
wait 0.5
$mybazookaguy aimat NULL

Posted: Fri Feb 28, 2003 7:27 pm
by LT.BARNES
ok i will try this... thanx...

yea if this don't work... iwill try wat butch said..


but how can i make a wall explode when u walk through a trigger?

Posted: Fri Feb 28, 2003 7:47 pm
by LT.BARNES
na it don't work


the soldier jus stands there and he won't fire at all! grrrr

ok how do i make a wall explode by walkin through a trigger.

Posted: Fri Feb 28, 2003 8:03 pm
by Butch
I think it's something about a trigger_multiple, i think theres a tut on it somewhere..........

Posted: Fri Feb 28, 2003 8:27 pm
by LT.BARNES
cool......where?


cause it aint workin at all..

i can't get a man to shoot at a wall to make it explode...
OR

i can't get a wall to explode on its own

Posted: Fri Feb 28, 2003 8:50 pm
by Butch
/tutorials/obj_spbombingstuff.php

Posted: Fri Feb 28, 2003 11:23 pm
by LT.BARNES
Na dude i have that already...

i don't want the player to bomb the wall..

i want the wall to jus suddenly blow up..

i want the player to start in a room locked in..

then the wall blows up... and u c a soldier on the other side with a rocket..

i would have that soldier blow it up, but don't know how.