Some new scripts, dialogs and animations
This commit is contained in:
1 parent
2cae9998a0
commit
d6417eba1b
15 files changed
+114724
-96
No files matched your search
@@ -163,6 +163,17 @@ namespace ZL {
|
||||
this_impl->triggerExitCallbacks[zoneId] = onExit.as<sol::protected_function>();
|
||||
});
|
||||
|
||||
api.set_function("set_trigger_zone_enabled",
|
||||
[game](int index, bool value) {
|
||||
auto& triggerZones = game->triggerZones;
|
||||
if (index < 0 || index >= static_cast<int>(triggerZones.size())) {
|
||||
std::cerr << "[script] set_trigger_zone_enabled: index " << index << " out of range\n";
|
||||
return;
|
||||
}
|
||||
triggerZones[index].enabled = value;
|
||||
});
|
||||
|
||||
|
||||
// set_npc_enabled(index, enabled)
|
||||
api.set_function("set_npc_enabled",
|
||||
[game](int index, bool value) {
|
||||
|
||||
Reference in new issue
Block a user