Script_model speed

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Script_model speed

Post by Alcoholic »

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 »

Don't use a script_model, use a vehicle -> opeltruck instead. Then you can use the drive command.
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

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 »

For clipping you need a collision ent, a script_object made out of clip brushes.
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

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 »

No the vehicle isn't automatically clipped. It just uses a bounding box (poor collission detection).
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

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 »

You can supply it as a parameter for the drive command.
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

so i can give a script_model the order to drive?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

spline path

Post by tltrude »

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,

Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

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 »

You will need to use flypath or followpath though, which means that the wheels of the truck won't rotate.
Image
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

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