Jump to content

Archaros

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Archaros

  1. Hi !

    I'm beginner and I'd like to understand how the LOS events work. I kinda need a bit of help, please ? :smile:

     

    EDIT : Let's make it much simpler, here's my code :

    Scriptname sun extends Actor
    
    
    Function SomeFunction()
      RegisterForSingleLOSGain(Game.GetPlayer(), self) 
    EndFunction
    
    
    Event OnGainLOS(Actor akViewer, ObjectReference akTarget)
      if akViewer == Game.GetPlayer()
      if akTarget == self
        ; do stuff
      Endif
      Endif
    EndEvent
    
    
    Event OnLostLOS(Actor akViewer, ObjectReference akTarget)
      if akViewer == Game.GetPlayer()
      if akTarget == self
        ; stop doing stuff
      Endif
      Endif
    EndEvent

    I don't understand why it doesn't work x(
    It should "do stuff" when the player is seeing the object having this script.

  2. Hi !

    English is not my main language, so I could make some errors in the explanation.

     

    I need a bit of help. I'm a beginner, I finished the tutorial and I'm trying to do harder stuff.

    I'm making a dungeon with a quest. The enemies are supposed to be "resurrected" bandits (see Raise Dead ? Yes, that zombies), and I have no clue about how to do it.

    I thought about making them "start dead" and cast a spell to raise them... but I still have no clue how to do it and make them hostile toward the player.

     

    Maybe there's a thing with the keywords or the scripts ?

×
×
  • Create New...