Results 1 to 2 of 2

Thread: Get TextTool objects in a Scripting Zone

  1. #1

    Exclamation Get TextTool objects in a Scripting Zone

    It does *not* appear that you can getObjects() in a scripting zone & "get" Text generated programmatically by the TextTool (although it is an object). Onsave() wipes object references (although I realize I could use GUIDs) so I need a way to clear a scoreboard or I get new updates to the scoreboard "overwriting" previous ones (if the game is saved; I can clear it using object references in a no-save scenario). I would have really like to just detect the TextTool objects in the scripting zone & loop through with .destruct(). Any other ideas to reset this board other than saving a 5x9 (45 entries) scoreboard of GUIDs?

    The following only finds the tag for the scoreboard, nothing else:

    Code:
    for i, obj in ipairs(oScoreSheetZone].getObjects()) do print(obj.tag) end

  2. #2
    Try a Physics.cast of the size of that zone, I;ve seen that pick up more stuff that zone.getObjects()

Similar Threads

  1. Replies: 2
    Last Post: 12-10-2018, 10:39 AM
  2. Replies: 3
    Last Post: 09-07-2017, 04:28 PM
  3. Texttool again :\
    By WarpSpider in forum Scripting
    Replies: 4
    Last Post: 07-07-2017, 08:00 AM
  4. Replies: 8
    Last Post: 07-02-2017, 09:47 AM
  5. Replies: 5
    Last Post: 05-31-2017, 12:46 PM

Posting Permissions

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