SRL Archive - Help

Reflection Question


DeSnob

2010-06-13 00:19:28

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

Method

2010-06-13 00:27:33

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.

DeSnob

2010-06-13 09:21:39

From: Method
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.

Nava2

2010-06-13 09:30:38

IntToBox(x1, y1, x2, y2)