-
Notifications
You must be signed in to change notification settings - Fork 93
Natives (Data Manipulation)
Home ▸ Natives ▸ Data Manipulation
Gets float data from an item.
Sets float data for an item.
Gets integer data from an item.
Sets integer data for an item.
Gets array data for an item. Only works for E_STREAMER_AREA_ID
, E_STREAMER_EXTRA_ID
, E_STREAMER_INTERIOR_ID
, E_STREAMER_PLAYER_ID
and E_STREAMER_WORLD_ID
.
Sets array data for an item. Only works for E_STREAMER_AREA_ID
, E_STREAMER_EXTRA_ID
, E_STREAMER_INTERIOR_ID
, E_STREAMER_PLAYER_ID
and E_STREAMER_WORLD_ID
.
Returns whether a value is in an array for an item. Only works for E_STREAMER_AREA_ID
, E_STREAMER_EXTRA_ID
, E_STREAMER_INTERIOR_ID
, E_STREAMER_PLAYER_ID
and E_STREAMER_WORLD_ID
.
Appends a value to an array for an item. Only works for E_STREAMER_AREA_ID
, E_STREAMER_EXTRA_ID
, E_STREAMER_INTERIOR_ID
, E_STREAMER_PLAYER_ID
and E_STREAMER_WORLD_ID
.
Removes a value from an array for an item. Only works for E_STREAMER_AREA_ID
, E_STREAMER_EXTRA_ID
, E_STREAMER_INTERIOR_ID
, E_STREAMER_PLAYER_ID
and E_STREAMER_WORLD_ID
.
Gets the length of an array for an item. Only works for E_STREAMER_AREA_ID
, E_STREAMER_EXTRA_ID
, E_STREAMER_INTERIOR_ID
, E_STREAMER_PLAYER_ID
and E_STREAMER_WORLD_ID
.
- Parameters:
type
: The item type.- Returns:
- The upper bound.
Gets the upper bound (highest ID) for an item type.
- This differs from
Streamer_CountItems
in that it returns the highest ID and not just the number of items that have been created. This makes it useful for iteration purposes.
- Change a pickup's model ID:
Streamer_SetIntData(STREAMER_TYPE_PICKUP, pickupid, E_STREAMER_MODEL_ID, 1212);
- Store extra IDs for an object:
new extraIDs[3] = { 1, 2, 3 }; Streamer_SetArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_EXTRA_ID, extraIDs);