From Bohemia Interactive Community
Jump to navigation Jump to search

What does select 0 in the second example mean exactly?

? (velocity carOne Select 0) > 50 : hint "Slow down, you are exceeding the speed limit."

There is no array involved in this.

Edit:......never mind.....I think I got there finally ;)

Planck 22:16, 16 June 2007 (CEST)

Speaking of the example. It makes no sense IMHO. It suggests that the car is exceeding a speed limit but it only checks the x value, meaning the speed in x (world) direction. But in reality it makes no sense as the car could drive much faster in y-direction and have a value of 0 in x direction. Also 50 m/s (13.89 km/h) is not really fast for a car ;) I guess the example should be changed to have a less misguiding example than the current one. Donnervogel 23:46, 16 June 2007 (CEST)
right, except that 50m/s is 180km/h which is quite fast ;) --T_D 01:35, 17 June 2007 (CEST)
aww right sorry about that. Where was my head... ah well it's one week before the exams... I take no guarantee for any of my gibberish that is not related to my lectures ;) Donnervogel 12:33, 17 June 2007 (CEST)