Scripts / localpromt function

Author
Message
Nevin
9
Years of Service
User Offline
Joined: 19th May 2015
Location: U.S.A
Posted: 26th Jan 2017 23:24
I'm trying to get text to follow an object as it zooms around the map in 3rd person, kinda like localpromt, but for 3rd person.

I tried for 2 days on and off, lots of coffee and just can't seem to get it. I think I would need to apply some offset but idk

The only reason why this is difficult is because I can't seem to wrap my head around how to put x/y/z cords to just an x/y position on my screen I have had some luck, using math.abs and playerdis to object, geting text to flow around the object, but can't get it to work.

localpromt works great in 1st person, just wish I could see it work in 3rd.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 27th Jan 2017 09:48
If you don't need the text to change you could create decals and use those instead by positioning them in 3d.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Nevin
9
Years of Service
User Offline
Joined: 19th May 2015
Location: U.S.A
Posted: 28th Jan 2017 10:52
Thats a great idea. I will need to try that

Login to post a reply

Server time is: 2024-12-23 03:37:18
Your offset time is: 2024-12-23 03:37:18