Jump to content

ladyonthemoon

Account closed
  • Posts

    43
  • Joined

  • Last visited

Posts posted by ladyonthemoon

  1. Ok so made some progress with the loop I now have this:

    Scriptname DWKBlightningScript extends ObjectReference  
    
    ObjectReference Property KBG  Auto  
    
    ObjectReference Property Xmrk  Auto  
    
    Actor Property XH  Auto 
    
    SPELL Property LBolt  Auto  
    
    Function SomeFunction()                       
      RegisterForUpdateGameTime(10)
    endFunction
    
    Event OnUpdateGameTime()
    	LBolt.RemoteCast(Xmrk, XH, KBG)
    EndEvent
    

    Now in theory according to that script (which compiles with no errors) Every 10 seconds of real time the Xmarker (object reference) should cast the lightning bolt spell (spell) at the Keyblade grave (object reference) and XH (actor) gets the blame.

     

    But in reality nothing happens, no spell is cast at all anytime in the game. I am seriously confounded and at a loss.

    RegisterForUpdateGameTime counts in hours, not seconds. Your spell should be cast every 10 hours in your example.

×
×
  • Create New...