Product Chat / Camera Angles

Author
Message
Nevin
9
Years of Service
User Offline
Joined: 19th May 2015
Location: U.S.A
Posted: 17th Aug 2020 16:46
Hello,

Does anyone know the function(s) I could use to mess around with camera angles for 3rd person.

What I want to do is, when the map first loads, save the camera angle. Then when I change the angels from moving the mouse, I want to later have a trigger to set the angle back to the starting angle on map load for reasons

But when checking the globle I see lots of options and don't know where to look.
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 17th Aug 2020 17:11 Edited at: 17th Aug 2020 17:14
This sorta sounds like a scripting question...?
There might be some examples or people that respond in that area?

Basically it seems like if MAX does what I'm hoping it does, the player
angle is visible in the GUI editor when building levels, and you could
just cut and paste them to your trigger script. But still very simple
already in GGjr.

If you place most characters default without rotation, they should
be zero[0] 'Y'. When people supply entities that are NOT zeroed 'Y'--
@TGC Store, that is more work for scripters.
PM
darimc
GameGuru TGC Backer
17
Years of Service
User Offline
Joined: 19th Jan 2007
Location: Nova Scotia, Canada
Posted: 17th Aug 2020 17:34
I compiled a complete list of GG functions for a project I've been working on, and there are some third person camera controls, although I have never used them to know how they work. Here's the compiled list for reference: https://github.com/davismcphee/script-guru/blob/master/unique-normalized-functions.txt.

Here are all the functions that seem to be related to third person controls:


Hope it helps!
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 17th Aug 2020 20:03

Stock third person is weird. Never much used it (after two years with GG)
but I did once modify it for something-- so is this how everyone else's is working?

The character doesn't move with the camera angle, and when you shoot
after looking one direction, the character suddenly flops over to the
camera angle! And there's no reloading animation. okay...
PM
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 17th Aug 2020 22:07
Quote: "after looking one direction, the character suddenly flops over to the
camera angle! And there's no reloading animation. okay..."


I posted that once as being a possible bug, though Lee mentioned it might actually be a feature. Perhaps some games automatically rotate you like that, but i think a RotateSlowly command could be replaced there to give it at least some quick spin around animation. Instead of teleporting.

Store Assets - Store Link
Free Assets - Resource Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 18th Aug 2020 13:13
You will need the get camera position and angle commands. Find em at the start, then just retrieve out of an array or variables later. Should be easy, but GG is a bit weird when it first starts up. Sounds go full volume, even if set down, objects don't animate properly etc. Only settles down after it has loaded in properly. So using the init for some of this just doesn't work very well.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.

Login to post a reply

Server time is: 2024-11-23 15:22:34
Your offset time is: 2024-11-23 15:22:34