Difference between revisions of "Creating Multithreaded Skyrim Mods Part 3 - Callbacks"

no edit summary
imported>Chesko
imported>Chesko
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category: Tutorials]]
[[Category: Tutorials]]
[[Category: Community Tutorials]]


{{Tutorial Index
{{Tutorial Index
Line 225: Line 226:
function PlaceConjuredGuardAsync(ActorBase akGuard)
function PlaceConjuredGuardAsync(ActorBase akGuard)
     if !thread01.queued()
     if !thread01.queued()
        debug.trace("[Callback] Selected thread01")
         thread01.get_async(akGuard, XMarker)
         thread01.get_async(akGuard, XMarker)
     elseif !thread02.queued()
     elseif !thread02.queued()
        debug.trace("[Callback] Selected thread02")
thread02.get_async(akGuard, XMarker)
thread02.get_async(akGuard, XMarker)
     ;...and so on
     ;...and so on
     elseif !thread09.queued()
     elseif !thread09.queued()
        debug.trace("[Callback] Selected thread09")
         thread09.get_async(akGuard, XMarker)
         thread09.get_async(akGuard, XMarker)
     elseif !thread10.queued()
     elseif !thread10.queued()
        debug.trace("[Callback] Selected thread10")
         thread10.get_async(akGuard, XMarker)
         thread10.get_async(akGuard, XMarker)
     else
     else
Line 361: Line 358:
ObjectReference myGuard = akGuard as ObjectReference
ObjectReference myGuard = akGuard as ObjectReference


debug.trace("[Callback] Assigning " + myGuard + "...")
if !Guard1
if !Guard1
Guard1 = myGuard
Guard1 = myGuard
Anonymous user