View Full Version : Reflection Question
DeSnob
06-13-2010, 04:19 AM
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
06-13-2010, 04:27 AM
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
06-13-2010, 01:21 PM
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
06-13-2010, 01:30 PM
IntToBox(x1, y1, x2, y2)
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.