Multiversal Mechatronics - KSP All the ideas and discussions
0 votes Vote

Allow wait() to evaluate expressions

Example "wait(vessel.state == "condition").

Shard, 26.09.2012, 06:10
Idea status: completed

Comments

Shard, 26.09.2012, 06:10
That syntax wouldn't work in Lua, but you can already write that as:

wait( function() return vessel.state == "condition" end )

Note the space after the end, that is necessary due to a quirk of the current Lua parser.

Leave a comment