Triggers

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

Moderator: Moderators

Post Reply
User avatar
XenoPHoXx_NL
Sergeant
Posts: 53
Joined: Thu Feb 16, 2006 11:26 pm
Contact:

Triggers

Post 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
Can't Win The Game? Change The Rules!
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post 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.
"all the governments in the world are corrupt and in the hands of the Illuminati"
User avatar
XenoPHoXx_NL
Sergeant
Posts: 53
Joined: Thu Feb 16, 2006 11:26 pm
Contact:

Post 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
Can't Win The Game? Change The Rules!
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Search for spline paths.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post 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
"all the governments in the world are corrupt and in the hands of the Illuminati"
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post 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.
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post 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.
"all the governments in the world are corrupt and in the hands of the Illuminati"
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post 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 
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

path

Post 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
Tom Trude,

Image
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post 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 
"all the governments in the world are corrupt and in the hands of the Illuminati"
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post 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 
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post by hogleg »

You da man vip....constanly cruises the map now. :D

Thx alot
"all the governments in the world are corrupt and in the hands of the Illuminati"
Post Reply