wood planks that u shoot off

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
vinyl
Sergeant Major
Posts: 113
Joined: Sun Dec 29, 2002 1:00 pm
Location: uk

wood planks that u shoot off

Post by vinyl »

ok this part is gos over my head lol .
i have some wood sewer covers & i want ppl to shoot them off so thay can get down in to the sewer i have had a look at some of the tuts & its all aboult bobing tanks & wall is it all just the same
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

If you want them to just break, no scripting is needed. Look up func_window.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

func_crate

Post by tltrude »

It would be better to make them func_crate. Just make a board and hit key N. Then find func_crate on the list and double click on it. You should also set health lower and debristype to 0.
Tom Trude,

Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

make the manhole a script object
key: targetname
value: manhole1

create a trigger->multiple over the manhole
key: targetname
value: manhole1_trigger
key: setthread
value: manhole1_thread
check the !damage box

add add fx->debrisobject->woodbeams just as an example
key: targetname
value: manhole1_debris

then add to the script

manhole1_thread:
manhole1 remove
manhole1_debris anim start
wait 1
manhole1_debris remove
end
hope this helps, prob not cos it's all foreign 2 me :-/
vinyl
Sergeant Major
Posts: 113
Joined: Sun Dec 29, 2002 1:00 pm
Location: uk

Post by vinyl »

thanks guys going to try tham out now
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

func_crate will be the easiest, i just like having pointless script in my .scr :P
hope this helps, prob not cos it's all foreign 2 me :-/
vinyl
Sergeant Major
Posts: 113
Joined: Sun Dec 29, 2002 1:00 pm
Location: uk

Post by vinyl »

yup func_crate was the easiest all that scripting blows me away i did try it i did some think rong some were it was not ther wen i played the testmap
i will get it right soon just have to do more scripitng
thanks all
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

when writing scripts always have...

main:
//something in here
end

next_thread:
//whatever this does, or the one i created
end

when the .scr is loaded it will read the whole script until it reaches either an end command or a break command. i should of explained this before :oops:

so when the script was being run it was removing the manhole straight away
hope this helps, prob not cos it's all foreign 2 me :-/
Post Reply