View Single Post
Old 01-07-2008, 08:14 PM   #7 (permalink)
beng
Senior Member
 
Join Date: Jan 2008
Posts: 329
Default

If you still ant to make buildable oil derricks, here's what you can try:

Make a command button based on one of the command buttons used by dozers to build buildings, just copy and paste it's code, change the button name, change the object being built to the oil derrick object, and make any changes you want to the strings and button image.

Add the command button to the dozer command set.

Add the dozer command set to the dozer object.


Edit the oil derrick object to make the following changes:

Edit the draw module and add conditionstates for the awaiting construction, actively being constructed, and SOLD states, just see the draw modules in any of the buildable buildings for examples of them.

If you like you can also add extra draw modules for scaffolding and fences and cranes, use the scaffolding from an object of a similar size to the oil derrick, say a GLA stinger site or nuke_chinapowerplant.

Add BuildCost and BuildTime and Buildable = Yes lines to the oil derrick object.

If you like, give it PreRequisites (see any buildable building).

At the bottom of the object code, below the Geometry and shadow, add:
BuildCompletion = PLACED_BY_PLAYER
beng is offline   Reply With Quote