pickup vanish to every player
# support-forum
c
when player pickup a pickup type 2, it vanish for the player who pick
Copy code
c++
Pickup[puId] = CreateDynamicPickup(19131, 2, x, y, z, -1);
there is a type that vanish to every player? not only the player who pick the pickup?
t
Add callback
OnPlayerPickUpDynamicPickup
, then delete by its
pickupid
.
c
but i want that it come back after some time... i'll need to recreate it after
OnPlayerPickUpDynamicPickup
there is no such of type?
t
There's no such type for that. Or you can try
Streamer_SetIntData
to change its world and then add timer for restoring to its original world
c
lol i can change pickupinterior with this function? how it should be?
Copy code
c++
Pickup[puId] = CreateDynamicPickup(19131, 2, x, y, z, -1);
Copy code
c++
Streamer_SetIntData( STREAMER_TYPE_PICKUP, Pickup[puId], E_STREAMER_EXTRA_ID, 255 );
and then set it back on all interiors with
Copy code
c++
Streamer_SetIntData( STREAMER_TYPE_PICKUP, Pickup[puId], E_STREAMER_EXTRA_ID, -1 );
???
t
Based on its documentation, it's do-able
c
looks like this int data is not interior
its a int value to put in pickup
w
IntData is all of the streamer's internal data, not the interior
replace the extra_id with the
E_STREAMER_INTERIOR_ID
c
now it is working
thank you very much there is the same thing
E_STREAMER_INTERIOR_ID
for virtual world?
w
Copy code
c
enum
{
    E_STREAMER_AREA_ID,
    E_STREAMER_ATTACHED_OBJECT,
    E_STREAMER_ATTACHED_PLAYER,
    E_STREAMER_ATTACHED_VEHICLE,
    E_STREAMER_ATTACH_OFFSET_X,
    E_STREAMER_ATTACH_OFFSET_Y,
    E_STREAMER_ATTACH_OFFSET_Z,
    E_STREAMER_ATTACH_R_X,
    E_STREAMER_ATTACH_R_Y,
    E_STREAMER_ATTACH_R_Z,
    E_STREAMER_ATTACH_X,
    E_STREAMER_ATTACH_Y,
    E_STREAMER_ATTACH_Z,
    E_STREAMER_COLOR,
    E_STREAMER_DRAW_DISTANCE,
    E_STREAMER_EXTRA_ID,
    E_STREAMER_HEALTH,
    E_STREAMER_INTERIOR_ID,
    E_STREAMER_INVULNERABLE,
    E_STREAMER_MAX_X,
    E_STREAMER_MAX_Y,
    E_STREAMER_MAX_Z,
    E_STREAMER_MIN_X,
    E_STREAMER_MIN_Y,
    E_STREAMER_MIN_Z,
    E_STREAMER_MODEL_ID,
    E_STREAMER_MOVE_R_X,
    E_STREAMER_MOVE_R_Y,
    E_STREAMER_MOVE_R_Z,
    E_STREAMER_MOVE_SPEED,
    E_STREAMER_MOVE_X,
    E_STREAMER_MOVE_Y,
    E_STREAMER_MOVE_Z,
    E_STREAMER_NEXT_X,
    E_STREAMER_NEXT_Y,
    E_STREAMER_NEXT_Z,
    E_STREAMER_PLAYER_ID,
    E_STREAMER_PRIORITY,
    E_STREAMER_ROTATION,
    E_STREAMER_R_X,
    E_STREAMER_R_Y,
    E_STREAMER_R_Z,
    E_STREAMER_SIZE,
    E_STREAMER_STREAM_DISTANCE,
    E_STREAMER_STYLE,
    E_STREAMER_SYNC_ROTATION,
    E_STREAMER_TEST_LOS,
    E_STREAMER_TYPE,
    E_STREAMER_WORLD_ID,
    E_STREAMER_X,
    E_STREAMER_Y,
    E_STREAMER_Z
}
c
E_STREAMER_WORLD_ID
thank you very much @wooden-dusk-70200
6 Views