[][src]Function tes3mp_plugin::plugin::generated::get_current_mp_num

pub fn get_current_mp_num() -> i16

Get the current (latest) mpNum generated by the server.

Every object that did not exist in an .ESM or .ESP data file and has instead been placed or
spawned through a server-sent packet has a numerical index known as its mpNum.

When ObjectPlace and ObjectSpawn packets are received from players, their objects lack mpNums,
so the server assigns them some based on incrementing the server's current mpNum, with the
operation's final mpNum becoming the server's new current mpNum.

Returns the mpNum.