Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small questions
#1
The idea of this thread is to be a place where people can ask small scripting-questions. I often find myself having questions that I feel aren't important enough to qualify an entirely new thread. I think it is convenient to have a placer where one can kind of rapidfire questions that come on their mind and when finding a solution post it here as well. This could turn out to be quite a useful reference.

I hope it's alright for me to post this ^-^
Reply
#2
Is there currently a way to get the rotation of the camera?
Reply
#3
Rotation of the camera is rotation of the player.
Reply
#4
Well, not quite. I need the x, y and z rotation of the actual camera. I am trying to convert 3D- to 2D-coordinates.
Reply
#5
For now u can't just do it. I need to add some kind of getVobRotation function, which return rotation calculated from matrix.
Reply
#6
(03.03.2016, 20:13)Bimbol Wrote: For now u can't just do it. I need to add some kind of getVobRotation function, which return rotation calculated from matrix.
Reply
#7
Is there a way to make the player invisible only to himself? I know about setPlayerInvisible, but that's not quite what I am searching for. setPlayerInvisible makes the player invisible to everyone else. I need the player to not be able to see himself, independently to whether or not he is visible to everyone else. I'm assuming that's not possible (Without creating invisible meshes or rewriting the camera from scratch)?
Reply
#8
@up Probably is way in G2 Engine, but for now u have to use enableHeroMovenent, and move hero, behind the camera.
Reply
#9
I'm having a bit of trouble synchronizing Vobs added via createVob. Is there a function that needs to be called for it to show up for other players, or is that just not done yet? Also (Unfortunately I can't really test it right now obviously), it would be pretty cool, if it isn't done this way currently, if Vobs could be moved to different virtual worlds.
Reply
#10
Vobs are created on client side, so they are visible only in one player. If u want to make them visible, u have to synchronize it by u own. But if vobs are static, just send client script which will create the same vobs in every player. Vobs won't work with virtual worlds. As I said they are on client side.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Questions regarding 0.0.5.1 HammelGammel 6 5,330 08.01.2017, 15:52
Last Post: HammelGammel
  2 Questions Imperator 2 2,974 04.11.2015, 02:41
Last Post: Imperator

Forum Jump:


Users browsing this thread: 1 Guest(s)