#Modifying Micro H.I.D. Pickup Charge

1 messages ยท Page 1 of 1 (latest)

swift cove
swift cove
#

Solution: give the item to the dedicated server player, modify it, and then drop it again ๐Ÿ‘

quaint pagoda
#

You can use Player.Host or Server.Host

#

No need for .Where().First

swift cove
quaint pagoda
swift cove
quaint pagoda
swift cove
verbal island
runic sparrow
#

@swift cove Sorry for the late response.

public static void SetEnergy(ushort serial, float value)
{
    if (!InventoryItemLoader.TryGetItem(ItemType.MicroHID, out MicroHIDItem item))
        return;

    item.EnergyManager.ServerSetEnergy(serial, value);
}
#

ServerSetEnergy is serial based

swift cove
#

David my hero

#

Thank you ๐Ÿ™๐Ÿผ

runic sparrow
#

Every weapon has some kind of method to set the data per-serial

#

For everything usually

#

ammo, etc

#

Well.. whats normally setteable