Page 1 of 1

Triggers

Posted: Sat Mar 11, 2006 2:11 pm
by XenoPHoXx_NL
Hi guys me again

Im having a problem
Im trying to complete my map but i only want 1 thing in it
a coaster ( adventure park)
i saw a map called snowhill and there was an minecar following a track
im not sure how it is been done.
I thought it has a trigger_push or something
Does someone here know how to make some kind of thing like a rollercoaster and drive the player in a minecar around the map?


Any reply is nice

Thx again greetzz X

Posted: Sat Mar 11, 2006 7:02 pm
by hogleg
Should be a lot like this:
/t.php?id=68

You'll need to add a activate trigger to that tutoral cause the truck starts driving immediatly when you start the level.

Posted: Sat Mar 11, 2006 9:24 pm
by XenoPHoXx_NL
well it isnt
this is for driving a truck around i mean for let a brush move around
i know the func_door works best but they go only strait in one line
90,180,360,270 degrees what im looking for is going up in a line of 45degrees and then a drop of 40 degrees and making left or right turns

Posted: Sat Mar 11, 2006 9:53 pm
by Rookie One.pl
Search for spline paths.

Posted: Sun Mar 12, 2006 12:10 am
by lizardkid
yes moving a truck is exactly the same as moving a coaster. make your coaster a script_object, give it a targetname, and follow the tutorial.

Posted: Sun Mar 12, 2006 1:33 am
by hogleg
I made that truck drive around my map and on the last waypoint i made its target the first waypoint (wap1) and it ends up at the first waypoint then stops.

Question:

1.how do I make it keep going on that loop?

2. If I use clipping on the truck how does it stick to while its moving, should i give the truck a targetname and give the clipping a target or what?
Cause i want to be able to jump in the back without falling through. lol

Thx

bout time i had a mapping question :P

Posted: Sun Mar 12, 2006 1:58 am
by ViPER
at the end of your drive thread do something like this -

Code: Select all


drive_thread:

stuff for driving

wait 5

goto drive_thread

end

Don't respawn your pathnodes - if there all in the same thread break it up into seperate ones. Just repeat your drive commands.

Posted: Sun Mar 12, 2006 3:15 am
by hogleg
Im using that basic script from the tut above. This didn't work.

Code: Select all

main:
exec global/ai.scr
exec global/loadout.scr maps/test_landscape.scr
exec gloal/friendly.scr

level waittill prespawn
exec global/ambient.scr test_landscape
level waittill spawn
level.script = "maps test_landscape.scr"
thread truck

end

truck:
$trk drive $wap

wait 5

goto drive_thread

end 
Now that i look at it should it be ( goto truck_thread )

*** Im sorry, didnt mean to hijack this thread but its the same topic.

Posted: Sun Mar 12, 2006 8:41 am
by ViPER
maybe this -

Code: Select all

main: 
exec global/ai.scr 
exec global/loadout.scr maps/test_landscape.scr 
exec gloal/friendly.scr 

level waittill prespawn 
exec global/ambient.scr test_landscape 
level waittill spawn 
level.script = "maps test_landscape.scr" 
thread truck 

end 

truck: 
$trk drive $wap 

$trk waittil drive 

goto truck

end 

path

Posted: Sun Mar 12, 2006 10:29 am
by tltrude
I haven't looked at the totorial, but there are a number of other commands you can try. Here are a couple of them.

$trk followpath $wap

$trk flypath $wap

A path can be waypoints that target the next one or splinepaths that do about the samething. I'm not sure, but "drivepath" might be a command to. Also, you can use the commands "glue" and "unglue" to attach the "local.player" to the object--players don't move around corners very well without it.

Btw, for your ambient sound line to work, there would have to be a .mus file with the name "test_landscape". It is easier to just use the background sound from a stock map, like this.

exec global/ambient.scr mohdm7 //<-- wind sounds only

Posted: Sun Mar 12, 2006 6:16 pm
by hogleg
hey Viper i added this:

$trk waittil drive

goto truck

and the truck just sits there, remove those two lines and it drives around the loop just one time still. :evil:

im trying toms commands now, thx for the sound tip.
Will update this post later today, im not giving up on this one :twisted:
*************
uh...XenoPHoXx_NL jump in any time, its your thread :lol:

tom this didnt work at all, truck just sits there.

Code: Select all

main:
exec global/ai.scr
exec global/loadout.scr maps/test_landscape.scr
exec gloal/friendly.scr

level waittill prespawn
exec global/ambient.scr mohdm7
level waittill spawn
level.script = "maps test_landscape.scr"
thread truck

end

truck:
$trk followpath $wap



end 

Posted: Sun Mar 12, 2006 7:38 pm
by ViPER
not sure then - How long does the loop take? if it takes 60 then try this to test it -

Code: Select all

truck: 
$trk drive $wap 

wait 62

goto truck 

end 

Posted: Sun Mar 12, 2006 11:26 pm
by hogleg
You da man vip....constanly cruises the map now. :D

Thx alot