This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk
Weapons laying around the map (IObjectWeaponItem in script) does not disappear after a while like normal weapons spawn from crates when:
- Created by IGame.CreateObject(). Example:
It would be cool to have an option to despawn weapons in certain circumstances. Something like IPlayer.GiveWeaponItem(WeaponItem weapon, bool canDespawn = false)
Added the following after v.1.3.4 to IObjectWeaponItem:
float DespawnTime, void SetDespawnTime(int despawnTimeMs), bool Despawning, bool BreakOnDrop, void SetBreakOnDrop(bool value) to be able to control in a bit more detail how and when items in the world should despawn. See ScriptAPI documentation for more details after v.1.3.4.