Skip to content
aubergine10 edited this page Oct 20, 2015 · 4 revisions

##Overview

The CanPlaceOnRoad property enables the associated object to be placed on roads. The [RoadGate door](RoadGate (Door)) is a good example.

##Syntax

This optional setting is used in materials.txt and must be within a BEGIN Object ... definition block. It can be used only once per definition block.

    Properties CanPlaceOnRoad

##Scripting

There is currently no way for scripts to determine if an object has this property.

data/scripts/:

  • Object.Spawn() ignores all placement restrictions, so CanPlaceOnRoad property has no effect
  • Object.GetMaterial() can be used to determine the material present at a given map location

##Notes

By default all objects are implicitly prohibited from being placed on roads.

This property only affects manual placement of objects by the player.

##See Also

  • materials.txt:
  • Consumables:
    • [ElectricalCable](ElectricalCable (Consumable))
    • [LargePipe](LargePipe (Consumable))
    • [SmallPipe](SmallPipe (Consumable))
  • Doors:
    • [RoadGate](RoadGate (Door))
  • Materials:
    • [Road](Road (Material))
    • [RoadCrossing](RoadCrossing (Material))
    • [RoadCrossingLeft](RoadCrossingLeft (Material))
    • [RoadCrossingRight](RoadCrossingRight (Material))
    • [RoadMarkings](RoadMarkings (Material))
    • [RoadMarkingsLeft](RoadMarkingsLeft (Material))
    • [RoadMarkingsRight](RoadMarkingsRight (Material))
Clone this wiki locally