Product Chat / Less > weird walls...?

Author
Message
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 21st May 2021 02:24
Alrighty... there was a discussion on 'b' align objects on your map (or is it the 'g' key now?)
https://forum.game-guru.com/thread/222749
So I asked -- "How hard would it be to draw a line on the map and the active entity is spawned all lined up the length of mentioned line? Now that would be a fast convenience. Probably outdoing the AAA littlewigs."

Not too hard. It's potty time! So I decided to do a demo (which I must admit is a bit crude and primitive) because I haven't added the full screen mouse control the GG editor has. So there are several additional controls that could be added upon-- echo; just a DEMO!
*Contains objects perhaps not everyone has, so it's a complete compiled level (w/ no embellishments!)
**Thanks to smallg's getting angles script.
***Thanks to AmenMoses for the > GetEntityPositionX ( e ) < functions... I suspect that's his work. Correct if wrong. What this does is make getting these position values much less lag-prone.
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 21st May 2021 02:29
Well... it wouldn't let me upload the .zip file, so oh well.
To clarify what I was attempting to share was a demo on drawing walls (anything straight actually)
from sidewalks to power-lines, streets, etc.
on your map instantly with the mouse. The demo is okay to see the basic precept, but I tried a few
times to upload the compiled map; (228 mb).zip here-- a no go on it said 'error'.
PM
granada
Forum Support
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 21st May 2021 03:22
You could put it up here and post a link , download link lasts for up to 30 days if I remember right
https://www.swisstransfer.com/en

Dave
Windows 10 Pro 64 bit
GeForce RTX™ 2070 GAMING OC 8G
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
3840 x 2160 ,60 Hz
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 21st May 2021 09:36
Quote: "Correct if wrong"


Sort of, Lee added them after a few email exchanges we had.

My addition is the GetObjectPosAng( objid ) command.

e.g.:
local x, y, z, xa, ya, za = GetObjectPosAng( g_Entity[ e ].obj )

Then you have all the positional/orientation details for the physical object all from one call.
Been there, done that, got all the T-Shirts!
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 21st May 2021 14:38 Edited at: 21st May 2021 15:29
Okay. Thanks Granada. Checked on that and looks okay.
So here it is (not elegant, just simple functionality demo)
https://www.swisstransfer.com/d/c0c42382-72d6-4eae-8f9e-e5c6f66f7991
PM

Login to post a reply

Server time is: 2024-11-21 12:59:42
Your offset time is: 2024-11-21 12:59:42