News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

get cost of the signals

Started by Yona-TYT, February 26, 2018, 06:51:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT

I need to use "get_cost ()" in the list of available signals.

    local sign_list = sign_desc_x.get_available_signs(wt_road)
    local sign_cost = 0
    foreach(sign in sign_list) {
        if(sign.is_private_way()){
          sign_cost = sign.get_cost()
            }
    }

Yona-TYT

Excuse the double post.

I also need to get the cost of text label, since these may vary depending on the pakset;). ;)

Dwachs

Apparently I got the base class of sign_desc_x wrong
Parsley, sage, rosemary, and maggikraut.

Dwachs

Parsley, sage, rosemary, and maggikraut.