Skip to content

Commit

Permalink
Merge pull request #80 from Belovese/patch-1
Browse files Browse the repository at this point in the history
Update luaPlugin.cpp
  • Loading branch information
FynnTW authored Oct 12, 2024
2 parents 74a705e + be23c5f commit 5a716e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion M2TWEOP Code/M2TWEOP library/luaPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,13 @@ sol::state* luaPlugin::init(std::string& luaFilePath, std::string& modPath)
@tparam string counterName The name of the counter
@treturn int counterValue Returns the value of the counter
@usage
isExist, counterValue = M2TWEOP.getScriptCounter("SomeCounter")
---@param eventData eventTrigger
function onEventCounter(eventData)
-- get the name and value of the triggered counter
local counterName = eventData.eventCounter
local counterValue = M2TWEOP.getScriptCounter(counterName)
print('counter : '..counterName..' has been set to : '..counterValue)
end
*/
tables.M2TWEOP.set_function("getScriptCounter", &gameHelpers::getScriptCounterNoBool);

Expand Down

0 comments on commit 5a716e0

Please sign in to comment.