1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-19 14:41:34 +00:00

allow activateBy to trigger handlers

This commit is contained in:
Kuyondo 2025-05-22 00:34:33 +08:00
parent b7a48e1d78
commit 30da6dc508

View file

@ -351,7 +351,7 @@ namespace MWLua
throw std::runtime_error( throw std::runtime_error(
"The argument of `activateBy` must be an actor who activates the object. Got: " "The argument of `activateBy` must be an actor who activates the object. Got: "
+ actor.toString()); + actor.toString());
if (objPtr.getRefData().activate())
MWBase::Environment::get().getLuaManager()->objectActivated(objPtr, actorPtr); MWBase::Environment::get().getLuaManager()->objectActivated(objPtr, actorPtr);
}; };