Addictgamer Posted September 17, 2010 Share Posted September 17, 2010 You can remove the ability to build Buildings and vehicles. This is useful if you don't want certain buildings in your modification. This is done through the dependencies in the LEGO.CFG. To disable the object from being built, make the Pilot dependency "-1", so the condition will never be met. Here is an example: [table] Lego* > Dependecies AlwaysCheck:ElectricFencePilot:-1,ToolStation:1,TeleportPad:1,PowerStation:0 [/table] You may also want to remove the associated build image from the toolbar. The image links can be found in the InterfaceBuildImages block for buildings/vehicles or InterfaceImages for images in the toolbars shown when a Rock Raider is selected. To disable the button image, all you need to do is to add a semi-colon ";" at the beginning of the line. Here is an example: [table] Lego* > InterfaceImages ;Interface_MenuItem_PlaceFenceInterfaceIconsefence.bmp:InterfaceIconsNefence.bmp:InterfaceIconsPefence.bmp:Place_Electric_Fence|IntSFX_ElecFence:Cannot_place_Electric_Fence|IntSFX_NoElecFence:KEY_E [/table] Link to comment Share on other sites More sharing options...
TheDoctor Posted September 17, 2010 Share Posted September 17, 2010 Make the dependencies impossible. Try making it require a level 50 Super Teleport. If that doesn't work, make a new object, like a rockwhale or something that won't be used anywhere in game, therefore making it unobtainable. Just give stick that there with the dependencies and see if the game doesn't asplode. EDIT: ...urrr.... what happened. I posted and the topic... wait. EDIT 2: I want to make an object unbuildable. Don't say "Remove the object from the game". I can't remove electric fences from the game. So, using NeverCheck:ElectricFence doesn't work Removing the current dependency code for the Electric Fence removes all dependencies... (Hey look, a new mod!) So, how would I do this? IM NOT CRAZY AFTER ALL. Link to comment Share on other sites More sharing options...
Lair Posted September 17, 2010 Share Posted September 17, 2010 Make the dependencies impossible. Try making it require a level 50 Super Teleport. If that doesn't work, make a new object, like a rockwhale or something that won't be used anywhere in game, therefore making it unobtainable. Just give stick that there with the dependencies and see if the game doesn't asplode. And then you drill into a cavern with rockwhales. lol. Also, this still keeps it on the menu. I think. Though.... *tries* Link to comment Share on other sites More sharing options...
Addictgamer Posted September 17, 2010 Author Share Posted September 17, 2010 It does. Just remove the BuildImages entry for that object. Link to comment Share on other sites More sharing options...
Recommended Posts