Get Dynamic pickup pos
#1

Hi,

How get dynamic pickup position?
Reply
#2

Hello,
Create variables to store each pickup positions:

CreateDynamicPickup(modelid, type, Float, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = 100.0);

New PickupX[100], PickupY[100], Pickup[100];

CreateDynamicPickup_(modelid, type, Float, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = 100.0)
{
new Pickup = CreateDynamicPickup(modelid, type, Float, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = 100.0);
PickupX[Pickup] = x
.............
Reply
#3

Unnecessary. The streamer keeps those values in memory because it needs to know where to create the pickups. Use Streamer_GetFloatData.
Reply
#4

Good! Because I didn't know that!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)