blob: 1a3bd805225d64653715d639729b76d64e1fdcdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
---
title: 'speed_set_restriction(3advtrains)'
manual: 'Advtrains Developer''s Manual'
---
# Name
`set_restriction`, `merge_aspect` - Apply speed limits to trains
# Synopsis
* `set_restriction(train, type, val)`
* `merge_aspect(train, asp)`
# Description
`set_restriction()` sets the speed restriction of the given type of the given train to `val` and updates train object correspondingly.
`merge_aspect()` sets the speed restriction of the given train based on the value of the signal aspect.
# Return Value
`set_restriction()` and `merge_aspect()` do not return any value.
|