in0finite / SanAndreasUnity

Open source reimplementation of GTA San Andreas game engine in Unity
https://discord.gg/p6jjud5
MIT License
2.13k stars 352 forks source link

Implement pickups #99

Open in0finite opened 3 years ago

in0finite commented 3 years ago

Pickups should be static map objects.

They should detect collision with peds, and allow peds to pick them up. Probably limit this to players' peds only.

Collision detection can be done using trigger colliders. The same way as it's done for ENEX objects.

Pickups are located in interior level 13.

Once they are picked up, there should be a cool off period during which they don't spawn again.

For now, we only need these types of pickup: