Flyable Planes

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

:cry: that sux.
User avatar
HappyChappy_7000
Warrant Officer
Posts: 146
Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:

Post by HappyChappy_7000 »

i think its something to do with the invertpitch or something like that
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 dont know but im gonna try working on a script for this sometime.
User avatar
HappyChappy_7000
Warrant Officer
Posts: 146
Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:

Post by HappyChappy_7000 »

I still need to fix the camera position
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 »

yeah. ill try to figure out how to move the crosshair.
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

i tried to make planes fly before, but it didn't work out
Live to map, not map to live.
-mohaa_rox, .map
moderator
User avatar
HappyChappy_7000
Warrant Officer
Posts: 146
Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:

Post by HappyChappy_7000 »

The camera positioning is almost complete.
But i have to figure out a way to make the camera follow the tank in that position.
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:

glue

Post by tltrude »

You can make the camera follow the tank, if it has a targetname. Here is an HTML doc from the Spearhead SDK:

http://pages.sbcglobal.net/tltrude/Temp ... torial.zip

In my tutorial map it follows a path and watches a script_origin target at the flagpole, but you can change it to follow anything with a targetname.
Tom Trude,

Image
User avatar
HappyChappy_7000
Warrant Officer
Posts: 146
Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:

Post by HappyChappy_7000 »

Ive already tried that but the camera is in the wrong position when i use the follow command and plus i dont know how to move the camera higher :( Ive already tried orbit_height but thats only 4 orbits
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:

Post by tltrude »

There is a distance command.
Tom Trude,

Image
User avatar
HappyChappy_7000
Warrant Officer
Posts: 146
Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:

Post by HappyChappy_7000 »

does it make the camera go higher or further?
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:

Sample script

Post by tltrude »

If you look at that sample script it shows how to move the camera above the players origin by 64 units:

// move the cameras origin to the players position
local.pos = $player.origin + (0 0 64)
$watch_camera movetopos local.pos

The numbers are XYZ, and Z is the up and down axis.
Tom Trude,

Image
User avatar
HappyChappy_7000
Warrant Officer
Posts: 146
Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:

Post by HappyChappy_7000 »

but then how do you make the camera follow in that position?
What? You know who I am?
Post Reply