Console question

  • BloodLust
    25th Jul 2011 Member 0 Permalink
    Just wondering but why has there not been a command for altering pressure?

    The pressure tools (air/vac) dont have the "accelerating" hotkey ( ctrl+shift+lmb) so changing things to certain pressure is slower

    and its harder to be precise with it

    but if there IS in fact a command for mind telling me what it is? :P
  • jacksonmj
    25th Jul 2011 Developer 0 Permalink

    Lua page on wiki:

    tpt.set_pressure

    Sets values on the pressure map, 3 overloads
    tpt.set_pressure(number x, number y)
    tpt.set_pressure(number x, number y, number width, number height)
    tpt.set_pressure(number x, number y, number width, number height, number value)


    Sets pressure in a rectangular area (the first two overloads set pressure to zero).

    x, y, width, height are on the same scale as walls, so top left corner is (0, 0), bottom right corner is (152, 95).
  • BloodLust
    25th Jul 2011 Member 0 Permalink
    now this can just be put into the console or do i have to do things with lua scripts outside TPT , i just ask because another game ive played uses lua but to make something work it had to be put into scripts and all sorts of other stuff ( it was a "player" game not a particle simulator so it had objects and things making it more complex )
  • vanquish349
    25th Jul 2011 Member 0 Permalink
    this is an api so it should work just in the console
  • BloodLust
    25th Jul 2011 Member 0 Permalink
    oh ok thats good then