Results 1 to 4 of 4

Thread: Reflection Question

  1. #1
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Reflection Question

    Since it isn't exactly based in reflection (because tboxes can be used anywhere) How do you use
    SCAR Code:
    function MeInBox(Bounds: TBox): boolean;
    in a script?

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    You provide a TBox for the function's argument (using the IntToBox function, for example) and the function will tell you if your character is inside that area in the game.
    :-)

  3. #3
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Method View Post
    You provide a TBox for the function's argument (using the IntToBox function, for example) and the function will tell you if your character is inside that area in the game.
    Yeah i know that. What i was asking was how would you use it in script??
    like MeInBox(blah blah) I don't understand how I would set it up. I'm not used to this, so I don't know if it's (Tile(x, y), Tile(..)) or [x1, y1, x2, y2] or such.

  4. #4
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    IntToBox(x1, y1, x2, y2)
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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