Page 1 of 1

wierd m6l3a problem

Posted: Tue May 10, 2005 11:09 pm
by ViPER
I am converting m6l3a to mp and wanted to connect the outside to the inside. This is the intro to the gas facility that starts with the train depot, sniper tower scene.

there are a series of heavy doors that you open once you get inside, in sp they close behind you disconnecting the path so you can move forward. I found that opening heavydoor 1 and 2 at the same time causes the textures to dissapear in the connecting path when you look from either side.

I set the script so that doors 1 and 2 would alternate open and close in a loop creating a connection to both areas without causing a leak. And it worked!!!

Problem is the doors stop openning when a second player enters the battle. :{

What causes this ? i have never run into this before where the script is not functioning with multiple players.

Posted: Wed May 11, 2005 1:30 am
by lizardkid
looks like a double-command, telling the doors to open twice may cause them to stop functioning to avoid conflict in commands/overflow due to errors.

Lock down your server for a few seconds until the doors open, or just remove the doors. if it's just a LAN game jsut tell the other guy to wait.

Posted: Wed May 11, 2005 5:47 am
by ViPER
the doors alternate open and closed so to keep the two areas connected without leak issues. I am told that $player is used in sp scripting and is causing the door loop to stop functioning as soon as a second person joins the game. If i remove $player it doesnt work at all. Any ideas wht to replace it with?


doorloop1:
$scene3_heavydoor1 open $player
wait 3
$scene3_heavydoor1 close $player
wait 3
$scene3_heavydoor2 open $player
wait 3
$scene3_heavydoor2 close $player
wait 3
goto doorloop1

Posted: Wed May 11, 2005 6:03 am
by ViPER
i think this will work

$scene3_heavydoor1 open $scene3_heavydoor1_entity

Posted: Wed May 11, 2005 7:47 am
by lizardkid
$door open

or $player[local.i] open $door

Posted: Wed May 11, 2005 10:33 am
by Rookie One.pl

Code: Select all

$door open parm.other
Guaranteed to work as I've already converted this map to MP.