59 |
lua::CallFunc(target.c_str(), Value(onoff)); |
lua::CallFunc(target.c_str(), Value(onoff)); |
60 |
} |
} |
61 |
else if (action == "signal") { |
else if (action == "signal") { |
62 |
world::EmitSignals (o); |
world::EmitSignals (o, onoff); |
63 |
} |
} |
64 |
else if (Object *t = GetNamedObject(target)) { |
else if (Object *t = GetNamedObject(target)) { |
65 |
SendMessage(t, action); |
SendMessage(t, action, Value(onoff)); |
66 |
} |
} |
67 |
else if (action != "idle") { |
else if (action != "idle") { |
68 |
fprintf(stderr, "Unknown target '%s' for action '%s'\n", target.c_str(), action.c_str()); |
fprintf(stderr, "Unknown target '%s' for action '%s'\n", target.c_str(), action.c_str()); |