Skip to content

Natives (Data Manipulation)

DraGoN-MasteR edited this page Dec 27, 2017 · 20 revisions

HomeNativesData Manipulation

  • Parameters:
    • type: The item type.
    • id: The item ID.
    • data: The item data (from the enumerator).
    • result: The stored result.
  • Returns:
    • 0 on failure, 1 on success.

Gets float data from an item.


  • Parameters:
    • type: The item type.
    • id: The item ID.
    • data: The item data (from the enumerator).
    • value: The set value.
  • Returns:
    • 0 on failure, 1 on success.

Sets float data for an item.


  • Parameters:
  • Returns:
    • The integer data.

Gets integer data from an item.


  • Parameters:
    • type: The item type.
    • id: The item ID.
    • data: The item data (from the enumerator).
    • value: The set value.
  • Returns:
    • 0 on failure, 1 on success.

Sets integer data for an item.


  • Parameters:
    • type: The item type.
    • id: The item ID.
    • data: The item data (from the enumerator).
    • dest[]: The stored array data.
    • maxdest: The size of the stored array data (size of dest by default).
  • Returns:
    • 0 on failure, 1 on success.

Gets array data for an item.


  • Parameters:
    • type: The item type.
    • id: The item ID.
    • data: The item data (from the enumerator).
    • dest[]: The set array data.
    • maxdest: The size of the set array data (size of dest by default).
  • Returns:
    • 0 on failure, 1 on success.

Sets array data for an item.


  • Parameters:
    • type: The item type.
    • id: The item ID.
    • data: The item data (from the enumerator).
    • value: The value to search in the array.
  • Returns:
    • 0 or 1.

Returns whether a value is in an array for an item.


  • Parameters:
    • type: The item type.
    • id: The item ID.
    • data: The item data (from the enumerator).
    • value: The value to append to the array.
  • Returns:
    • 0 on failure, 1 on success.

Appends a value to an array for an item.


  • Parameters:
    • type: The item type.
    • id: The item ID.
    • data: The item data (from the enumerator).
    • value: The value to remove from the array.
  • Returns:
    • 0 on failure, 1 on success.

Removes a value from an array for an item.


  • Parameters:
  • 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.