Health for a flyingplane
Moderator: Moderators
Health for a flyingplane
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:
health for a plane
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.
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
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
crap
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!!!!
Amen tltrude!
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?
KHO, just think. The person took the time to try to help you out,
why don't you have a little common decency?
grb
- HappyChappy_7000
- Warrant Officer
- Posts: 146
- Joined: Thu Jul 10, 2003 1:14 pm
- Location: Australia
- Contact:
- HappyChappy_7000
- Warrant Officer
- Posts: 146
- Joined: Thu Jul 10, 2003 1:14 pm
- Location: Australia
- Contact:
you put the "thread stuka health" just after level waittill spawn
and then you put 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
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
.....
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?
m1l3b.scr
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.
There is also somthing like that in Spearhead, but I don't know which map it is off hand.

