Is it Possible to Set a Unique ID for Spawn'd Objects, Let say i sapwn a Box with a lock on it, i wanna be able to spawn that box back in the location it was in, and belong to the same owner etc, i know about NET id but that changes with every new Instance, so if server restarts for example the box would have a different NET ID.
Thanks in advance
Set a Unique ID
Discussion in 'Rust Development' started by SniperSpool, Jan 9, 2018.
-
Pay attention to this scheme, then you might know how you technically could manage it (with care):
Code:// Network.Server public Networkable CreateNetworkable(uint uid) { Networkable networkable = Pool.Get<Networkable>(); networkable.ID = uid; networkable.sv = this; if (uid > this.lastValueGiven) { this.lastValueGiven = uid; } return networkable; }