Location: JBPLAY \ Meteor 2 \ Help and Guidance \ Scripting Back to Threads |
CJmaster
Posts: 8 |
25 December 2008 13:40 (UK time)
Hi, I'm new on the forum and I havn't been playing meteor 2 for a long time and I need some help with scripting. I just wonder how to do if I want a vehicle drive for me. Like if I want a helecopter to drop me off some where. You need to login to create posts in this thread. |
DarkRain
![]() Joined: 01 March 2007 Posts: 1193 |
25 December 2008 14:41 (UK time)
Hello. ![]()
Edited: 25 December 2008 14:41 You need to login to create posts in this thread. |
CJmaster
Posts: 8 |
25 December 2008 15:33 (UK time)
Dark Rain wrote: No I want the vehicle to drive for me You need to login to create posts in this thread. |
Spy
![]() Joined: 05 October 2007 Posts: 1031 |
25 December 2008 16:27 (UK time)
@CJmaster Aah, you mean like when you get in a vehicle, it moves by itself? Im not sure, but i think its something to do with waypoints...
You need to login to create posts in this thread. |
CJmaster
Posts: 8 |
25 December 2008 17:05 (UK time)
Yes thats what I mean. I've tried everything with the waypoints. Do you know any tutorial? You need to login to create posts in this thread. |
nyasudah![]()
Joined: 06 February 2005 Posts: 832 |
25 December 2008 17:10 (UK time)
What you need is a vehicle, waypoints and some script (namely OnEnterVehicle and OnWaypointReached (and some others) if I remember well) there are some good tutorials on meteormods.com
You need to login to create posts in this thread. |
CJmaster
Posts: 8 |
27 December 2008 13:50 (UK time)
Dthdealer wrote: So if I want the vehicle to drive for me I will type OnWayPointReached_::lastwaypoint: ![]() You need to login to create posts in this thread. |
Dthdealer
![]() Joined: 10 March 2007 Posts: 476 |
28 December 2008 02:46 (UK time)
OnEnterVehicle will make the vehicle drive for you and you cannot get out OnWayPointReached will kick you out of the vehicle and lock it so you can't get in and use it normally.
You need to login to create posts in this thread. |
CJmaster
Posts: 8 |
29 December 2008 19:58 (UK time)
Well when I type that into sector mod nothing happends. This is really really fucked up. You need to login to create posts in this thread. |
ParaSait
![]() Joined: 26 June 2007 Posts: 1478 |
29 December 2008 21:02 (UK time)
You have to make an .c or .sc file with a name equal to your map, then put it in the same folder. Then you can put all those things in a function and call that function with a sector trigger. (If you need an example, you can take a look at the maps and their script files the regular Meteor folder)
Edited: 29 December 2008 21:03 You need to login to create posts in this thread. |
CJmaster
Posts: 8 |
29 December 2008 21:23 (UK time)
Mrazerty wrote: I checked the "Return To Base" .C file and there it says like this: void OnMapStart() { // get in Chinook SC_PlayerGetInVehicle( OBJECT_ID_CHINOOK); _________________________________________ So if I want a police car to drive for me in the beginning I will type: // get in Police car SC_PlayerGetInVehicle( OBJECT_ID_POLICECAR); / or something? You need to login to create posts in this thread. |
ParaSait
![]() Joined: 26 June 2007 Posts: 1478 |
29 December 2008 22:03 (UK time)
Yes, but don't forget to put in the OnMapStart event, which is the event that is called when the map initiates.
You need to login to create posts in this thread. |
|
Forums system (C) 1999-2023 by James Bunting.
Terms of Use