Post your scripting questions / solutions here
Moderator: Moderators
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Sat Jul 12, 2003 5:13 am
that sux.
HappyChappy_7000
Warrant Officer
Posts: 146 Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:
Post
by HappyChappy_7000 » Sat Jul 12, 2003 5:15 am
i think its something to do with the invertpitch or something like that
What? You know who I am?
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Sat Jul 12, 2003 5:18 am
i dont know but im gonna try working on a script for this sometime.
HappyChappy_7000
Warrant Officer
Posts: 146 Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:
Post
by HappyChappy_7000 » Sat Jul 12, 2003 5:35 am
I still need to fix the camera position
What? You know who I am?
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Sat Jul 12, 2003 5:39 am
yeah. ill try to figure out how to move the crosshair.
mohaa_rox
Field Marshal
Posts: 2760 Joined: Mon Nov 11, 2002 7:05 am
Contact:
Post
by mohaa_rox » Sat Jul 12, 2003 7:21 am
i tried to make planes fly before, but it didn't work out
Live to map, not map to live.
-mohaa_rox, .map
moderator
HappyChappy_7000
Warrant Officer
Posts: 146 Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:
Post
by HappyChappy_7000 » Sat Jul 12, 2003 7:25 am
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?
tltrude
Chuck Norris
Posts: 4774 Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:
Post
by tltrude » Sat Jul 12, 2003 7:33 am
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,
HappyChappy_7000
Warrant Officer
Posts: 146 Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:
Post
by HappyChappy_7000 » Sat Jul 12, 2003 7:42 am
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?
tltrude
Chuck Norris
Posts: 4774 Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:
Post
by tltrude » Sat Jul 12, 2003 7:49 am
There is a distance command.
Tom Trude,
HappyChappy_7000
Warrant Officer
Posts: 146 Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:
Post
by HappyChappy_7000 » Sat Jul 12, 2003 7:52 am
does it make the camera go higher or further?
What? You know who I am?
tltrude
Chuck Norris
Posts: 4774 Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:
Post
by tltrude » Mon Jul 14, 2003 11:41 am
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,
HappyChappy_7000
Warrant Officer
Posts: 146 Joined: Thu Jul 10, 2003 1:14 pm
Location: Australia
Contact:
Post
by HappyChappy_7000 » Tue Jul 15, 2003 7:24 am
but then how do you make the camera follow in that position?
What? You know who I am?