![]() |
Small questions - Printable Version +- Gothic Online Forums (https://archive.gothic-online.com) +-- Forum: Scripting (English) (https://archive.gothic-online.com/forum-11.html) +--- Forum: Scripting Help (https://archive.gothic-online.com/forum-12.html) +--- Thread: Small questions (/thread-1079.html) Pages:
1
2
|
Small questions - HammelGammel - 11.02.2016 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 ^-^ RE: Small questions - HammelGammel - 03.03.2016 Is there currently a way to get the rotation of the camera? RE: Small questions - Bimbol - 03.03.2016 Rotation of the camera is rotation of the player. RE: Small questions - HammelGammel - 03.03.2016 Well, not quite. I need the x, y and z rotation of the actual camera. I am trying to convert 3D- to 2D-coordinates. RE: Small questions - Bimbol - 03.03.2016 For now u can't just do it. I need to add some kind of getVobRotation function, which return rotation calculated from matrix. RE: Small questions - Profesores - 03.03.2016 (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. RE: Small questions - HammelGammel - 04.03.2016 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)? RE: Small questions - Bimbol - 05.03.2016 @up Probably is way in G2 Engine, but for now u have to use enableHeroMovenent, and move hero, behind the camera. RE: Small questions - HammelGammel - 05.03.2016 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. RE: Small questions - Bimbol - 06.03.2016 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. |