mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-03 15:27:13 -04:00
allow activateBy to trigger handlers
This commit is contained in:
parent
b7a48e1d78
commit
30da6dc508
@ -351,8 +351,8 @@ namespace MWLua
|
||||
throw std::runtime_error(
|
||||
"The argument of `activateBy` must be an actor who activates the object. Got: "
|
||||
+ actor.toString());
|
||||
if (objPtr.getRefData().activate())
|
||||
MWBase::Environment::get().getLuaManager()->objectActivated(objPtr, actorPtr);
|
||||
|
||||
MWBase::Environment::get().getLuaManager()->objectActivated(objPtr, actorPtr);
|
||||
};
|
||||
|
||||
auto isEnabled = [](const ObjectT& o) { return o.ptr().getRefData().isEnabled(); };
|
||||
|
Loading…
x
Reference in New Issue
Block a user