Health for a flyingplane

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
kho
Corporal
Posts: 36
Joined: Thu Jul 03, 2003 7:38 pm

Health for a flyingplane

Post by kho »

Whats the script command to set a plane to have health. Also when it ran out of health, whats the command to set a destroyed plane model flying down to the ground.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

$targetname_of_my_model.health = 200

and

$targetname_of_my_model.model = location_of_the_tiki/the_tiki.tik

( I could be wrong, but you are not explaining what you need in a large detail )
Admin .MAP Forums
Image
Head above heels.
User avatar
kho
Corporal
Posts: 36
Joined: Thu Jul 03, 2003 7:38 pm

health for a plane

Post by kho »

Im making a plane in my map going to blow up 2 rockets, and a radio room. Theres a path for the plane to go.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

I did a map where the plane was a script model then I did something like this

thread stuka_health

stuka_health:
while($stuka.health >0)
waitframe

local.stuka_crash = spawn sriptmodel "model" "vehicles/stuka_wing_d2.tik"

local.stuka_crash.origin = $stuka.origin
$stuka remove

$crash_path.origin=local.stuka_crash.origin // $crash_path is the first node of a info_splinepath that is the path the plane will follow when it crashes
local.stuka_crash flypath $crash_path 1000 100

.....

.....

end
User avatar
kho
Corporal
Posts: 36
Joined: Thu Jul 03, 2003 7:38 pm

Post by kho »

where do i put that shit.....?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

crap

Post by tltrude »

If you are going to call his script thread "crap", I think you can guess where he is going to tell you to stick it!!!!
Tom Trude,

Image
grb
Warrant Officer
Posts: 136
Joined: Fri Jun 06, 2003 12:22 am
Location: USA Philadelphia

Amen tltrude!

Post by grb »

Some forum members appear to be very rude to say the least!
KHO, just think. The person took the time to try to help you out,
why don't you have a little common decency?
grb
User avatar
HappyChappy_7000
Warrant Officer
Posts: 146
Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:

Post by HappyChappy_7000 »

crap is a bad word :(
is there any way to attach mg42s to planes?
What? You know who I am?
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

i think you can bind it, but if the plane turns, you'll have problems with the yaw min/max (if you set one)
User avatar
kho
Corporal
Posts: 36
Joined: Thu Jul 03, 2003 7:38 pm

Post by kho »

i always say crap for some reason. im not trying to be rude, sorry if u thought i was. But this scripting help ur giving me is one step closer to finishing my cuban missile crisis map. (its a great map). so can u tell me when u put it?
User avatar
HappyChappy_7000
Warrant Officer
Posts: 146
Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:

Post by HappyChappy_7000 »

you put the "thread stuka health" just after level waittill spawn

and then you put

Code: Select all

stuka_health: 
while($stuka.health >0) 
waitframe 

local.stuka_crash = spawn scriptmodel "model" "vehicles/stuka_wing_d2.tik" 

local.stuka_crash.origin = $stuka.origin 
$stuka remove 

$crash_path.origin=local.stuka_crash.origin // $crash_path is the first node of a info_splinepath that is the path the plane will follow when it crashes 
local.stuka_crash flypath $crash_path 1000 100 

..... 
under "end" of the "main" thread.
sry its confusing when i write it.
You have to edit some of the script other than copy and paste coz its just an example
What? You know who I am?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

m1l3b.scr

Post by tltrude »

That stuka is in the m1l3b.scr script. You can find that script in pak5.pk3, but there are a lot of things that need to be put in the map to get it to work--like spline paths, triggers, and script_origins. It would be hard, even for a professional mapper/scripter to figure out. Search for "monkey_stuka" in the script.

There is also somthing like that in Spearhead, but I don't know which map it is off hand.
Tom Trude,

Image
User avatar
kho
Corporal
Posts: 36
Joined: Thu Jul 03, 2003 7:38 pm

Post by kho »

thanks alot guys :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: vv
Post Reply