Function get_object_pid

Source
pub fn get_object_pid(index: u16) -> i16
Expand description

Get the player ID of the object at a certain index in the read object list,
only valid if the object is a player.

Note: Currently, players can only be objects in ObjectActivate and ConsoleCommand
packets.

index The index of the object.

Returns the player ID of the object.