Elevator script + map Hilfe...
Moderator: Moderators
train switch
I don't think there is an easy way to make the train switch move back slowly. But, that is how a train lever works--it has a big spring. I guess you could "hide" the switch and then "show" one that is turned 180 degrees. Then use move again on that one. But, it seems like a lot of work just to make it move slowly back. It might even be easier to make your own script_object lever, like an eletrical box with a lever.
Re: train switch
why yes, of course! Thnxtltrude wrote:...make your own script_object lever, like an eletrical box with a lever.
time
Try adjusting the time it takes the elevator to move. But, it is a matter of frame rates and therefore what works on your system may not be jetter free for others.
3-4 seconds per 256 units always seems to work fine for me.
3-4 seconds per 256 units always seems to work fine for me.
Thanks...
Didn't realize it had to do with fps aswell. It totally explains why I got different results on different peecees...
I'll keep the current settings then.
Btw. it's an open elevator, no doors, no closed off shaft... if players get caught under the elevator it's getting misaligned (ie. few units less travel in height) Can I calibrate the elevator now and then in some way ? Perhaps using a script origin with a fixed position ?
Didn't realize it had to do with fps aswell. It totally explains why I got different results on different peecees...
I'll keep the current settings then.
Btw. it's an open elevator, no doors, no closed off shaft... if players get caught under the elevator it's getting misaligned (ie. few units less travel in height) Can I calibrate the elevator now and then in some way ? Perhaps using a script origin with a fixed position ?
Yes script origins are the way to go, the elevator will always return to a fixed reference pont then.
Or spawn an orign at the intital elevator origin when the map first starts, for eg;
local.upperelepos = spawn script_origin
local.upperelepos.origin = $venice_lift.origin
//when sending the elevator back up use
$venice_lift moveto local.upperelepos
$venice_lift waitmove
Or spawn an orign at the intital elevator origin when the map first starts, for eg;
local.upperelepos = spawn script_origin
local.upperelepos.origin = $venice_lift.origin
//when sending the elevator back up use
$venice_lift moveto local.upperelepos
$venice_lift waitmove
yes, that's getting better and better
U probably know urself how to do it, but in case (no offense
)
add a brush with texture origin to ur lift, like:
make the brush somewhere in ur lift,
texture it with 'origin'
deselect the brush
select a brush of ur lift
press ctrl+e and the whole lift is selected
select the origin brush
do 'add to entity'
now the origin brush is part of the lift.
Now, make a script_origin and put it in the center of that origin brush. give it targetname/liftpos_up (because the lift is still upstairs)
copy it and drag the copy exactly 360 units below the 1st script_origin. Give it targetname/liftpos_dn
Do the same for the weight with targetname/weightpos_up and _dn
use this changed parts of the script:works fine here 
U probably know urself how to do it, but in case (no offense
make the brush somewhere in ur lift,
texture it with 'origin'
deselect the brush
select a brush of ur lift
press ctrl+e and the whole lift is selected
select the origin brush
do 'add to entity'
now the origin brush is part of the lift.
Code: Select all
lift_move:
$venice_lifttrigger_up nottriggerable
$venice_lifttrigger_down nottriggerable
if (level.liftpos==0)
{
$venice_lift moveTo $liftpos_up
$venice_lift move
$venice_liftweight moveTo $weightpos_dn
$venice_liftweight waitmove
level.liftpos=1
}
else
{
$venice_lift moveTo $liftpos_dn
$venice_lift move
$venice_liftweight moveTo $weightpos_up
$venice_liftweight waitmove
level.liftpos=0
}
$venice_lifttrigger_up triggerable
$venice_lifttrigger_down triggerable
endgates
Does your elevator have sound? I like using "lighthouse_run" because it does not require an ubersound work around.
if (level.liftpos==0)
{
$venice_lift loopsound lighthouse_run
$venice_lift moveTo $liftpos_up
$venice_lift move
$venice_liftweight moveTo $weightpos_dn
$venice_liftweight waitmove
$venice_lift stoploopsound
level.liftpos=1
}
You can also add a sound to the lever/switch.
if (level.liftpos==0)
{
$venice_lift loopsound lighthouse_run
$venice_lift moveTo $liftpos_up
$venice_lift move
$venice_liftweight moveTo $weightpos_dn
$venice_liftweight waitmove
$venice_lift stoploopsound
level.liftpos=1
}
You can also add a sound to the lever/switch.
sound
I don't recall a sound like that in the game. If you find it somewhere on the internet, start a new thread on how to add new sounds to the game.

