aboutsummaryrefslogtreecommitdiff
path: root/assets/manual/man/man3advtrains/speed_set_restriction.3advtrains.md
blob: 619cf3fe76154357f26a6968aa6e05cca3ba6cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
titles:
- speed_set_restriction
- speed_merge_aspect
section: 3advtrains
manual: 'Advtrains Developer''s Manual'
shortdesc: 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.