Scripts / PromptLocal

Author
Message
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 31st May 2020 18:24 Edited at: 1st Jun 2020 09:25
PromptLocal is prompting a second longer then it should, when it is supposed to stop prompting
i have more than one entity with PromptLocal so it needs to work faster.
it almost looks like the PromptDuration function only goes away after a second.
I need to make it work faster
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 1st Jun 2020 03:49
Yep, I've also dealt with this as well.
This is one of the reasons why I beg for Lee to open up data to scripters!
And give the EntityScreenX(e) , Y coordinates for entities-- which is exactly
what the hard coded PromptLocal is using!

That way using Text(x,y,t,"text")-- which stays for one frame- a quick blink!
And you could use timer with TextCenterOnXColor for any duration
with any of the text sizes, colors, and offsets!

Now, imagine how easy it would be to place health bars at entities!
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 1st Jun 2020 10:26
What is the scrpt you have on that? It's very likely

PromptLocal is hard coded and you can't change the duration as it does not have a duration, whether it is shown or not is determined by your script and how it shows the text. What's probably happening here isn't a duration issue, but a distance/angle of sight issue, when you turn to the other one then the first one so close to the second one that it is probably still on the edge of the distance or angle you required in your script

PromptDuration is an entirely separate command, it's the same as the normal Prompt but on a timer, it doesn't effect PromptLocal.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 1st Jun 2020 10:28
Try PromptLocal( e, "" )
Been there, done that, got all the T-Shirts!
PM
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 1st Jun 2020 12:30
@Belidos. even if i have only one entity and i look away then it still takes time to stop prompting. thats my problem it does not matter if i look away to the left or the right or up or down. i would like it to respond faster. and i know its hard coded , but any hard coded can be change if the right person attend to it.

@ AmenMoses, thanks i wil try it as soon as i get home from work.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11

Login to post a reply

Server time is: 2024-04-26 03:53:54
Your offset time is: 2024-04-26 03:53:54