Scripts / [SOLVED] Look around only?

Author
Message
arfur9
12
Years of Service
User Offline
Joined: 23rd Jan 2012
Location: Cold op norf UK
Posted: 27th Nov 2019 16:54
Is it possible to lock the camera so the player can't walk, jump etc? just look around?
I tried a search but I could find anything

The author of this post has marked a post as an answer.

Go to answer
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 27th Nov 2019 17:38 Edited at: 27th Nov 2019 17:43
SetFreezePosition(g_PlayerPosX,g_PlayerPosY,g_PlayerPosZ)
TransportToFreezePositionOnly()
PM
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 27th Nov 2019 18:36
Just remember that currently there is a bug in GG that will make the shadows disappear once you do any type of camera overriding.

https://github.com/TheGameCreators/GameGuruRepo/issues/642
Store Assets - Store Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
arfur9
12
Years of Service
User Offline
Joined: 23rd Jan 2012
Location: Cold op norf UK
Posted: 27th Nov 2019 18:38 Edited at: 27th Nov 2019 18:46
Thanks, yes that seems to work

Thanks for the heads up, I was intending to bake the lighting model time so I might be ok

GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 27th Nov 2019 18:51
Tree, rock, shrub, wall, etc.
Set to dynamic + your script assignment.

Rename default.lua ==>> default_look.lua
Put code inside main(e) function...
Search for lua basics for more info...
https://forum.game-guru.com/thread/208970
NO CAPS <<==XX in name like example gives!

You will need code to activate this feature, and to break out of it,
or you will be locked in an oblivious view forever!
PM
arfur9
12
Years of Service
User Offline
Joined: 23rd Jan 2012
Location: Cold op norf UK
Posted: 27th Nov 2019 20:39
This post has been marked by the post author as the answer.
Thank you GubbyBlips
hallowin
5
Years of Service
User Offline
Joined: 24th Nov 2019
Location:
Posted: 6th Dec 2019 17:16
good
PM
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 6th Dec 2019 17:23
Quote: "Just remember that currently there is a bug in GG that will make the shadows disappear once you do any type of camera overriding. "


This bug is now fixed in the next version
Store Assets - Store Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960

Login to post a reply

Server time is: 2024-12-22 09:36:59
Your offset time is: 2024-12-22 09:36:59