tank script ehlp ;-)

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
knuko
Lance Corporal
Posts: 19
Joined: Tue Feb 15, 2005 10:20 am

tank script ehlp ;-)

Post by knuko »

Hi, help me please, i want to put a tank in the middle of stalingrad MP, can someone help me with the script, TY!
:roll: :shock: :roll:
Hey, i gonna learn scripting :)
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 the forums, been asked a thousand times.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

well,i cant make it drivable,but i can tell you how to spawn one.
plus u can spawn waypoints to make the tank drive to the waypoint.
go to the spot were u want the tank,type coord in console.it will tell you the location.
then put this in your mohdm6.scr after level waittill spawn

Code: Select all

                              level waittill spawn

//tank--------------------------------------------------------------------
local.tnk = spawn script_model targetname tank1
local.tnk model "models/vehicles/tigertank.tik" //tank model
local.tnk.origin = ( xxx xxx xxx )  //<---numbers what u got from coord
local.tnk.angles = ( 0 0 0 )
local.tnk solid
end
Image
User avatar
knuko
Lance Corporal
Posts: 19
Joined: Tue Feb 15, 2005 10:20 am

Post by knuko »

thank you so much :) :roll: :roll:
Hey, i gonna learn scripting :)
Cobra {sfx}
Site Admin
Posts: 194
Joined: Tue Mar 23, 2004 10:25 pm
Contact:

Post by Cobra {sfx} »

A drivable tank in the middle of stalingrad? Where is it going to drive to? :?
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

the wall :wink: :roll:
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Admin .MAP Forums
Image
Head above heels.
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

the only real bad thing bout that script is,if you accidently get out in a bad spot youll get stuck in the view as if ur in the tank,but you can see you shoot and in one instance i even seen my dude running around,but my view still as if im in the tank.other than that,its great.
(plus i drove one off the bridge in obj/team_obj4)
went into the water,and i was able to drive through the minefiled the tank blew up,but it only took me to 1 health at the lowest,but i was behind the minefield and go pretty far back :?
Image
Post Reply