OnPlayerPickUpPickup alternative
#1

Hello, I am writing a script that creates a pickup at an interior of a particular building, and whenever a player picks up said pickup, it should display a dialog with a list.

I want to do it in such a way that if the player picks up the pickup, it displays the dialog and until the player picks up the pickup again, the dialog does not pop up.

I am having a problem with pickup types. None of the pickups do what I want.
I tried using type 2, but when the player picks up a pickup of type 2, it disappears and does not reappear until the player is within its range.

I also tried using type 1, but that is triggering every one second or two, making it very frustrating for the user navigating through the dialog.

I have tried using timers and IsPlayerInRangeOfPoint but I couldn't get both to work properly.
Reply
#2

Create a simple pickup with no callback for it and use streamer and: CreateDynamicSpehere and use the callbacks OnPlayerEnter/LeaveDynamicArea
Reply
#3

Quote:
Originally Posted by nGen.SoNNy
Посмотреть сообщение
Create a simple pickup with no callback for it and use streamer and: CreateDynamicSpehere and use the callbacks OnPlayerEnter/LeaveDynamicArea
Thanks for your reply. I did some research on the Streamer plugin. I will try it and get back to you.
Reply
#4

Quote:
Originally Posted by nGen.SoNNy
Посмотреть сообщение
Create a simple pickup with no callback for it and use streamer and: CreateDynamicSpehere and use the callbacks OnPlayerEnter/LeaveDynamicArea
I managed to do it, thanks for your help! It's way better now, such a wonderful plugin!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)