Announcement

Collapse
No announcement yet.

CyPlot.setPlotType() won't work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CyPlot.setPlotType() won't work

    Hi there,

    is it possible to use the command CyPlot.setPlotType() in a script ingame?
    Everytime I use this command, there is an error: "This constructor takes no arguments".

    I want to change a normal land plot into a mountain. Any Ideas?

    Thanks

    Smarten

  • #2
    Try this.

    Setup a Plot object.

    pPlot = CyMap().plot(iX,iY)

    Then have some fun.

    pPlot.setPlotType(PlotTypes.PLOT_PEAK, True, True)

    Boom. New mountain at those X/Y coordinates.

    Comment


    • #3
      Thats basically what we did.

      pTarget.setTerrainType( 7 , True , True ) worked (setting Terrain to Peak, but not changing the "height" of the plot).
      pTarget.setPlotType( 0 , True , True ) produced the mentioned error message in the log.

      Comment

      Working...
      X