CreatePickup and custom map
#1

Ok so i got a custom map , at around 50feet height (the z coordonate ) .and im trying to add some pickups there

Code:
pickupcza = CreatePickup(1318, 2, 5372.6929,-2662.7646,43.9063, -1);
Any ideea why i cant see the pickup ?

: The position is good (tested it by placing a checkpoint at the same place )
: the map is above water
: The pickup is created succefuly (doesnt return -1 ,it returns the pickup id )
: I got around 450 pickups


LE : The var pickupcza is defined on top of the script
Reply
#2

Create the pickup elsewhere on the ground and test, Then work your way up to the top (Maybe +50 on the Z co-ordinate each time) till you see your problem.

If the problem continues, Just lower the whole map, The easiest way to do this is just to delete about 200 of the "Z" part of the co-ordinate (You don't even need to load MTA or Map Editor!)
Reply
#3

Yea i thot of that ,but i wasnt shoure if the problem was from the height or not
LE : But i cant substract 200 from the z , coz the z only have around 50
Reply
#4

Try changing its pickup type to 1 instead of 2.

https://sampwiki.blast.hk/wiki/PickupTypes
Reply
#5

Use CreateDynamicPickup instead and change the type to whatever you want.. I used to use 23.
Reply
#6

Ty for the help ,the problem was that my map was a bit out (on the sea , waay on the sea) , so i modified all the x coordonates .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)