Results 1 to 4 of 4

Thread: Simple action - cant make it work

  1. #1
    iBot User
    Join Date
    Oct 2014
    Posts
    3
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3

    Question Simple action - cant make it work

    Im not sure why I cant make it work, looks so simple.

    Its like its just ignoring the 'else' function.


    I tried with this:

    Waypoints:
    w000 - Action: if direita then gotolabel ('dir') else gotolabel('nort')
    dir - Stand x y z
    nort - Stand x2 y2 z2

    Actions:
    direita = false

    ...
    Well since direita is false, it should jump and go to x2 y2 z2 right? But its just going to dir anyways, actually because its the next wpt.

  2. #2
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    @dnaji

    Lua Code:
     
    if direita then 
    gotolabel('dir')
     else 
    gotolabel('nort')
    end

  3. #3
    iBot User
    Join Date
    Oct 2014
    Posts
    3
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    Quote Originally Posted by Drakke View Post
    @dnaji

    Lua Code:
     
    if direita then 
    gotolabel('dir')
     else 
    gotolabel('nort')
    end
    guess I forgot to end function lol, what a noob.

    Thanks

  4. #4
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    should have checked debug log

Posting Permissions

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