User Tools

Site Tools


dev:core:funref:register_platform

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
dev:core:funref:register_platform [2019-07-02 12:33]
82.67.173.193 changed bold to monospace
dev:core:funref:register_platform [2019-10-02 16:48]
82.67.173.193 created example
Line 27: Line 27:
  
 Both platforms aren't blocking trains, because they belong to the ''[[reference:not_blocking_trains|not_blocking_trains]]'' group. As well, they are in the ''[[reference:platform|platform]]'' group (with value 1 for low platform, 2 for high one). Both platforms aren't blocking trains, because they belong to the ''[[reference:not_blocking_trains|not_blocking_trains]]'' group. As well, they are in the ''[[reference:platform|platform]]'' group (with value 1 for low platform, 2 for high one).
 +
 +===== Example =====
 +<code lua>
 +-- Create a brick platform
 +advtrains.register_platform("my_platforms", "default:brick")
 +</code>
  
 ===== In source code ===== ===== In source code =====
dev/core/funref/register_platform.txt · Last modified: 2020-01-22 10:53 by admin