Pickup Type
#1

I want to create pickups for business what pickup type to use for it? I want the pickup to not disappear.

Pickup type 1 doesn't work it triggers OnPlayerPickUpPickup every few seconds which is not what I want, I want OnPlayerPickUpPickup to be called only once.
Reply
#2

Type 23 and yes, I know - it's not documented.
Reply
#3

nvm .
Reply
#4

Same as type 1, keeps getting called.

I'm displaying a textdraw when standing on the pickup, whenever I hide the textdraw by pressing a button the textdraw appears again (while standing on pickup) because OnPlayerPickUpPickup keeps getting called.

I've seen in other servers it works there, the pickup doesn't disappear, also after hiding textdraw, the textdraw doesn't appear again.
Reply
#5

Well, it's obvious that will call OnPlayerPickUpPickup if you stand on it.

There are few ways I could think of. The best I guess would be a dynamic area (sphere around pickup) and on pickup, set it to true for that player. If it's true, don't re-show the textdraw and set it back to false when the player leaves the area.

I didn't quite understand if you want to show or hide the pickup but you can toggle a pickup if you use streamer plugin.
Reply
#6

I'm using the streamer plugin, I want the pickup to show always.

I'll try the sphere suggestion.

What you mean by toggle?
Reply
#7

When I was referring to the dynamic area, I forgot to say that a variable (per-player array) should be set to true/false. Sorry about the confusion, I forgot to write about it.

About the toggling, I meant the pickup. It can be toggled to be shown/hidden to a player but you said you want it to be always shown to the players.
Reply
#8

Using sphere works!

Thank you.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)