Results 1 to 3 of 3

Thread: OnlyIfTrapped action

  1. #1

    Join Date
    Jul 2012
    Posts
    362
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    45
    Rep Power
    5

    OnlyIfTrapped action

    Hi guys,


    i'm creating new script for me and i want to go to refill through whole spawn with onlyiftrapped action:
    Lua Code:
     
    setlooting("no")
     
    setsettings("Settings\\Targeting\\Monsters\\Spitter\\OnlyIfTrap  ped", "yes")
    setsettings("Settings\\Targeting\\Monsters\\Crawler\\OnlyIfTrap  ped", "yes")
    setsettings("Settings\\Targeting\\Monsters\\Insectoid Worker\\OnlyIfTrapped", "yes")
    setsettings("Settings\\Targeting\\Monsters\\Swarmer\\OnlyIfTrap  ped", "yes")
    setsettings("Settings\\Targeting\\Monsters\\Waspoid\\OnlyIfTrap  ped", "yes")

    And its still being "No" after the cavebot reach action.
    Like it don't work?
    There is nothing in debug so everything is fine.
    Why it don't work, im doing something wrong or what?
    Last edited by tubcio; 11-24-2013 at 08:11 AM.


  2. #2
    Normal User mistgun's Avatar
    Join Date
    Nov 2012
    Location
    LDZ
    Posts
    333
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    41
    Rep Power
    5
    u have missed one ")" at end?
    LATEST FREE AND PAID SCRIPTS

    Ghostland: EK Coryms Cave: EK
    Peninsula Tomb: EK, MS/ED Mount Sternum: EK
    Dwarf City: EK Nightstalkers Mountain: ED, MS

  3. #3

    Join Date
    Jul 2012
    Posts
    362
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    45
    Rep Power
    5
    Sorry i just copied it badly.
    If there was not ")" then there would be error in debug, but there is not.
    @problem solved, added wait(200) after each action and it works, dunno why.
    Last edited by tubcio; 11-24-2013 at 09:40 AM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •