FLYING TUTORIAL + SCRIPT
Moderator: Moderators
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
FLYING TUTORIAL + SCRIPT
(PS) if this doesnt work, plz post it.
BASED ON KNOWLEDGE GAINED FROM CARL LUCAS****CRAZYSERVERMODS****** MODDER. w/o him this wouldnt be here.
WOW! here is the knowledge you need to make youself fly.
First,if you dont have a good open spaced, rectsngular map lying around, then just make a large rectangular flat field with a skybox. Next, put a trigger multiple in one of the corners.
Then, let's give it some key/values:
targetname/flyer
setthread/flying
wait/80
delay/0
ok that was the easy mapping part. Now for a little scripting.
main:
level waitTill prespsawn
flying:
local.player=parm.other
if (local.player.packon == 1)
{
end
}
local.player.packon = 1
local.static = spawn script_model
local.static model "vehicles/stuka.tik"
local.static notsolid
local.static.scale=.2
local.static.origin = (local.player.origin + ( 100 190 100 ))
local.static.angle = "-45"
local.static glue local.player
local.player.scale=.01
local.player gravity .1
local.player stufftext "say I BELIEVE I CAN FLYYYYYY "
parm.other stopwatch 30
wait 30
local.player.packon = 0
local.player.scale=1
local.player gravity .5
local.static remove
end
level waittill spawn
end
BASED ON KNOWLEDGE GAINED FROM CARL LUCAS****CRAZYSERVERMODS****** MODDER. w/o him this wouldnt be here.
WOW! here is the knowledge you need to make youself fly.
First,if you dont have a good open spaced, rectsngular map lying around, then just make a large rectangular flat field with a skybox. Next, put a trigger multiple in one of the corners.
Then, let's give it some key/values:
targetname/flyer
setthread/flying
wait/80
delay/0
ok that was the easy mapping part. Now for a little scripting.
main:
level waitTill prespsawn
flying:
local.player=parm.other
if (local.player.packon == 1)
{
end
}
local.player.packon = 1
local.static = spawn script_model
local.static model "vehicles/stuka.tik"
local.static notsolid
local.static.scale=.2
local.static.origin = (local.player.origin + ( 100 190 100 ))
local.static.angle = "-45"
local.static glue local.player
local.player.scale=.01
local.player gravity .1
local.player stufftext "say I BELIEVE I CAN FLYYYYYY "
parm.other stopwatch 30
wait 30
local.player.packon = 0
local.player.scale=1
local.player gravity .5
local.static remove
end
level waittill spawn
end
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
-
Cobra {sfx}
- First Lieutenant
- Posts: 193
- Joined: Tue Mar 23, 2004 10:25 pm
- Contact:
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
-
Master-Of-Fungus-Foo-D
- Muffin Man
- Posts: 1544
- Joined: Tue Jan 27, 2004 12:33 am
- Location: cali, United States
hehe nice work!when i get it working i will post it
i think local.player useheld will make the plane move forward still looking into it
use held will detect for if they press use. if u want it to move forward when they press use u have to check for it and then move the plane.
BUT. as your plane is a plane with a man glued to it (or the other way round) if u try to move the plane it will now move as it is stuck to its owner (the plane). i got ,my boats moving as they were not part of the player then thanx to cobra for sugesting i try for planes we now have out planes working but im afraid its a lil bit more then just moveforward 40:(. if you can get it working that way the woooot. i can bin the script and start again. maybe local.player moveforward 40 local.player move?
