Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local inCombatLocal
- local function onSimulate()
- local inCombat = tes3.mobilePlayer.inCombat
- if (inCombat and (not inCombatLocal)) then
- inCombatLocal = true
- tes3.messageBox("'inCombat' has become TRUE")
- elseif ((not inCombat) and inCombatLocal) then
- inCombatLocal = false
- tes3.messageBox("'inCombat' has become FALSE")
- end
- end
- local function onInitialized()
- event.register('simulate', onSimulate)
- inCombatLocal = false
- mwse.log("[Test924: INFO] Test924 Initialized")
- end
- event.register("initialized", onInitialized)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement