Hope someone can PLZ help me with this

Post your scripting questions / solutions here

Moderator: Moderators

LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Hope someone can PLZ help me with this

Post 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
...prepare for your finest hour...
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post 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.
Live to map, not map to live.
-mohaa_rox, .map
moderator
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Post by LT.BARNES »

ok i am goin to quickly try this... thanx
...prepare for your finest hour...
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Post 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?
...prepare for your finest hour...
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post 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
Live to map, not map to live.
-mohaa_rox, .map
moderator
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

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

Post by LT.BARNES »

it doesn't work man??

hmmm

dam
...prepare for your finest hour...
User avatar
Butch
Lieutenant Colonel
Posts: 398
Joined: Fri Jan 24, 2003 11:30 am

Post by Butch »

what if you walk thru a trigger, the wall explodes and when u look there is a friendly with a bazooka
PFC.Butch
B Company, 2nd Ranger Battalion
US Army
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

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

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

Post 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.
...prepare for your finest hour...
User avatar
Butch
Lieutenant Colonel
Posts: 398
Joined: Fri Jan 24, 2003 11:30 am

Post by Butch »

I think it's something about a trigger_multiple, i think theres a tut on it somewhere..........
PFC.Butch
B Company, 2nd Ranger Battalion
US Army
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

Post 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
...prepare for your finest hour...
User avatar
Butch
Lieutenant Colonel
Posts: 398
Joined: Fri Jan 24, 2003 11:30 am

Post by Butch »

/tutorials/obj_spbombingstuff.php
PFC.Butch
B Company, 2nd Ranger Battalion
US Army
LT.BARNES
Major
Posts: 288
Joined: Mon Dec 30, 2002 4:37 pm
Location: london

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