V2 moving up with triggered door

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
skillz
Private
Posts: 4
Joined: Wed Oct 08, 2003 12:54 pm
Location: Belgium

V2 moving up with triggered door

Post by skillz »

hiya
im making a map and thought of a V2 moving up (triggered door moving up-V2 will move from a pit to an other platform) but is there a way to make the V2 (and its obj bomb thing) move up from a lower platform?

tnx
The M1 does MY talking.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Yes it is. You need to use some scripting. You know how to script?
Admin .MAP Forums
Image
Head above heels.
skillz
Private
Posts: 4
Joined: Wed Oct 08, 2003 12:54 pm
Location: Belgium

Post by skillz »

erm not really :s
The M1 does MY talking.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Well start there then.

First: Open the pak5.pk3 file in main with winzip ( *.pk3:s are just renamed zip files ).

Second: In the pk3: Open the main script files of the stock multiplayer maps: obj_team1.scr, obj_team2.scr, obj_team3.scr and obj_team4.scr with a text editor ( like notepad ).
Try to understand as best you can what is happening in the scripts.

Third: Read the scripting manual at http://www.planetmedalofhonor.com/rjuka ... guage.html

Fourth: Read it again.

Fifth: When you know what to ask for help with, ask for help.

Make any sense?
Admin .MAP Forums
Image
Head above heels.
skillz
Private
Posts: 4
Joined: Wed Oct 08, 2003 12:54 pm
Location: Belgium

Post by skillz »

yep :)
cheers m8
The M1 does MY talking.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

I did it

Post by tltrude »

I did it but, my V1 rocket (and its bomb) move down on crane.



Image

Here are the threads I made for it:

Code: Select all

//*** --------------------------------------------
//*** "Crane thread"
//*** --------------------------------------------

crane_prep:

	$v1_rocket1_trigger bind $v1_rocket1
	$v1_rocket1_explode bind $v1_rocket1
	$v1_rocket1 bind $crane
	$crane time 4.5
	$crane_shafts time 2
	goto crane_standby

end

crane_standby:

	$crane_trigger waittill trigger
	local.player = parm.other
       	if (local.player.dmteam == "axis") 
		{
			$crane_speaker playsound door_metal_locked1
			goto crane_standby
			end
		}
	$crane_speaker loopsound elevator_snd
	wait .5
	$crane_speaker loopsound elevator_snd wait
	iprintlnbold_noloc "Allies are lowering the crane!"
	$crane moveDown 233
	$crane loopsound lighthouse_run
	$crane_speaker loopsound lighthouse_run
	$crane waitmove
	$crane time 2
	$crane_shafts moveDown 80
	$crane_shafts move
	$crane time 2
	$crane moveDown 80
	$crane waitmove
	$crane loopsound lighthouse_run wait
	$crane_speaker loopsound lighthouse_run wait

end
I know it looks confusing, but there are really two sets of shafts. The crane control room is so far away, I had to put an extra speaker in there for the crane sound.
Tom Trude,

Image
Post Reply