Posts: 415
Threads: 145
Joined: Oct 2013
Reputation:
0
Hello, I want to show Info Box to player if hes near house entrance, is there some another way instead of timer? Thanks.
Posts: 1,167
Threads: 57
Joined: Jul 2010
Reputation:
0
OnPlayerEnterCheckpoint or OnPlayerPickUpPickup is your only options.
Posts: 694
Threads: 2
Joined: Oct 2012
Reputation:
0
OnPlayerEnterDynamicArea from streamer, make one dynamic area for each entrance ?
Posts: 415
Threads: 145
Joined: Oct 2013
Reputation:
0
I'm using streamer, so I can try it, just not sure for example i will have like 200 houses if it won't cause lag (when I create area for each house). But hopefully should be better than low interval timer.
//Edit seems to work pretty good with streamer area, thanks!
Posts: 1,167
Threads: 57
Joined: Jul 2010
Reputation:
0
I guess streamer also use a Timer, just internally on another thread.
Posts: 415
Threads: 145
Joined: Oct 2013
Reputation:
0
27.12.2015, 18:26
(
Последний раз редактировалось Riwerry; 27.12.2015 в 22:28.
)
It's working fine with streamer areas though, but now I've tried to script thing, that will prevent player to see my InfoBox when he's teleported on pickup area for first time. (Outside house is pickup for enter and inside is pickup for exit). And I don't want show InfoBox to this player until he leaves area pickup. That means if he comes back he will normally get infobox. It's little bit buggy, I've used OnPlayerEnterDynamicArea and OnPlayerLeaveDynamicArea + I'm teleporting player outside/inside house and detecting in which pickup area he is in KeyStateChange..
(I have stored area ids in variables of both Enter and Exit area)
//EDIT: I did it..