Post your scripting questions / solutions here
Moderator: Moderators
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Mon May 26, 2003 6:18 am
Im making a single player map where you ride in a truck. the truck is a script_model (opel_truck.tik). my guess is it runs on info_splinepaths, so thats what im using. my question is, how/where do i define the script_model's speed?
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Mon May 26, 2003 8:53 am
Don't use a script_model, use a vehicle -> opeltruck instead. Then you can use the drive command.
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Mon May 26, 2003 9:00 am
is the vehicle already clipped? also, the ea made maps used script models, and i was wonderin if i could do that too.
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Mon May 26, 2003 9:02 am
For clipping you need a collision ent, a script_object made out of clip brushes.
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Mon May 26, 2003 9:16 am
what i meant was is the vehicle>opel truck already clipped? i know the script_model isnt, and i already clipped it wiht a script object.
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Mon May 26, 2003 9:25 am
No the vehicle isn't automatically clipped. It just uses a bounding box (poor collission detection).
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Mon May 26, 2003 10:14 am
how do i change the speed of a script model? the campaign used script models and they had different speeds and all. how do you do it?
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Mon May 26, 2003 2:44 pm
You can supply it as a parameter for the drive command.
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Mon May 26, 2003 7:37 pm
so i can give a script_model the order to drive?
tltrude
Chuck Norris
Posts: 4774 Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:
Post
by tltrude » Mon May 26, 2003 11:34 pm
If you use a spline path, the speed is set in the nodes with Key: speed and Value: (number of units per second).
Tom Trude,
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Mon May 26, 2003 11:36 pm
ok ill try that.
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Tue May 27, 2003 7:27 am
You will need to use flypath or followpath though, which means that the wheels of the truck won't rotate.
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Tue May 27, 2003 11:31 pm
that doesnt matter, the player cant see the truck during the ride anyway, and it'll make my life alot easier when the player jumps out of the truck.