Results 1 to 7 of 7

Thread: alarm only if between these wpts

  1. #1
    Normal User
    Join Date
    Apr 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Question alarm only if between these wpts

    hi there, i was wondering if its possible to hve action saying
    if itemcount(xxx) < xx and cavebot is between waypoint 4 and 25
    then playsound('xxx.wav')
    end
    appreciating it

  2. #2
    Banned
    Join Date
    May 2012
    Location
    Rio de Janero - RJ / Canada
    Posts
    870
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    30
    Rep Power
    0
    yes its possible

    if (itemcount(xxx) < x and (wpt.id >= 4 and 25 >= wpt.id)) then
    playsound(xxx.wav)
    end

  3. #3
    Normal User
    Join Date
    Apr 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    oh thank u, u saved my day

  4. #4
    Normal User
    Join Date
    Apr 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    however, if for example my 4th waypoint has the name 'w003' then i must replace the '4' with 'w003', or the wpt.id is the waypoint count, not the name?

  5. #5
    Normal User
    Join Date
    May 2012
    Posts
    312
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    I'm not sure but I think it must be the number of the 'line' starting from 0 at the first waypoint

  6. #6
    Banned
    Join Date
    May 2012
    Location
    Rio de Janero - RJ / Canada
    Posts
    870
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    30
    Rep Power
    0
    its the number at the line

  7. #7
    Normal User
    Join Date
    Apr 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thanks guys

Posting Permissions

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