Author Topic: Check condition and fire encounter only if true - Is this possible?  (Read 428 times)

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
Check condition and fire encounter only if true - Is this possible?
« Reply #15 on: June 07, 2013, 02:17:15 am »


               When you start killing members of that faction, do they go hostile? If not, that could explain why the encounter doesn't trigger.

And yes, you could add something like this to his OnPhysicalAttacked:

object oEncounter = GetNearestObjectByTag("encounter_tag_here");
SetEncounterActive(TRUE, oEncounter);

               
               

               


                     Modifié par Squatting Monk, 07 juin 2013 - 01:41 .
                     
                  


            

Legacy_Groove Widdit

  • Sr. Member
  • ****
  • Posts: 293
  • Karma: +0/-0
Check condition and fire encounter only if true - Is this possible?
« Reply #16 on: June 07, 2013, 06:22:06 am »


               Yeah they're fighting back.
               
               

               
            

Legacy_Groove Widdit

  • Sr. Member
  • ****
  • Posts: 293
  • Karma: +0/-0
Check condition and fire encounter only if true - Is this possible?
« Reply #17 on: June 07, 2013, 10:45:00 pm »


               Thanks monk - your code worked. The guys I'm trying to activate are monks, too. There must be some kind of universal signifigance to that, but I'm knackered if I can figure it out.