Spearhead script

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
General Specific
Corporal
Posts: 27
Joined: Fri Mar 21, 2003 2:42 am

Spearhead script

Post by General Specific »

i came up with an idea and i was wondering if it was possible:
i wantwed to have a truck (opel truck) with a newbelweifer on the back (useable) and i wanted to make it so that:
a. the truck does continuous loops round a pre-determined path and
b. you can operate the newbelweifer and get on the back of the truck by pressing use key.
this was mainly an idea for a MP map, though it could be used in SP.......
and help/hints/ideas would be appreciated
(BTW: i suck at scripting but not too shabby at mapping (exept for ladders. don't ask for ladders.) so you'll need to explain it fairly well, i nee to know exactly what i have to do, or at least have a fairly good idea..........
<i>"We are not retreating - we are advancing in another Direction."
- General Douglas MacArthur (1880-1964)
</i>
<img src="http://www.angelfire.com/ns2/12345/planesigavo2.gif">
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

You can do that man.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Parts
Sergeant
Posts: 72
Joined: Thu Apr 10, 2003 12:35 pm
Location: UK
Contact:

Post by Parts »

never tried it but in theory possible.

First setting up the truck. If you are creating your own map for this then follow the tutorials in the SDK. If your adding this to an existing map check out the mod found in mohfiles.com called battle server. All the scripts to add a vehicle to a map are in there.

To add the weapon to the truck I guess you should be able to do by either attaching, binding or glueing the weapon to the truck. I think it's attaching you want but I'm sure someone can confirm this
[VS-UK]Capt.Parts[BnHQ]
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

u'll need to use
spawn turret

in the .tik file for the opel truck

binding and glueing turret to truck won't work because the turret can't use the drive command ;)
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

lol, but the turret may appear in a weird weird place.
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes you would need a turret tag in the truck model :?
Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

It would be as good as making ur own model with bones. :?
Live to map, not map to live.
-mohaa_rox, .map
moderator
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

i was just putting the basis of what to do into perspective,

you will also need queryturret scripting, adding and binding players, using new drive functions, and more stuff, it's hard work but it's a gooden when it's finished :D
hope this helps, prob not cos it's all foreign 2 me :-/
Post Reply