What is the alternative name for this I'm trying to build a list of spawned entities and deployables by the player.
[DOUBLEPOST=1467608734][/DOUBLEPOST]Nevermind... FIGURED IT OUT T.TCode:void OnEntitySpawned(BaseNetworkable entity){ var building = entity as BuildingBlock; var simpleBlock = entity as SimpleBuildingBlock; var cupboard = entity as BuildingPrivlidge; var deployable = entity as ItemModDeployable; if(building != null && _inProgress){ playerEntities.Add(building); } if(simpleBlock != null && _inProgress){ playerEntities.Add(simpleBlock); } if(cupboard != null && _inProgress){ playerEntities.Add(cupboard); } if(deployable != null && _inProgress){ playerEntities.Add(deployable); } }
Solved Convert BaseNetworkable to ItemModDeployable?
Discussion in 'Rust Development' started by ThunderZ, Jul 4, 2016.
