06.03.2009, 15:04
To fix DestroyPickup showing different pickups being destroyed for different players, every time you call it, re-create every pickup except for the destroyed one. (It doesn't always work to good though, e.g if a player picks up a pickup with type 2 which is supposed to re spawn after a few seconds, when they pick it up it could immediately destroy by coincidence, or pickup type 3 which isn't supposed to re spawn wouldn't work to good either, so realistically it would only work alright with pickup type 12, which isn't pickup-able).
To fix pickup IDs screwing up in OnPlayerPickupPickup, store every pickup location/id into an array, and find the closest pickup ID to the player when OnPlayerPickupPickup is called to get the real pickup id.
To fix pickup IDs screwing up in OnPlayerPickupPickup, store every pickup location/id into an array, and find the closest pickup ID to the player when OnPlayerPickupPickup is called to get the real pickup id.