Jump to content

Draw Timer on polygon?


redeems
 Share

Recommended Posts

So in my paint, i highlight a polygon, how would I go about putting a timer on that spot for x amount of time, then clearing the polygon? I've looked through the API, and googled. The timer doesn't have to be a timer, it could be a progress bar, or just some indication of an integer's progress. 

 

logic I'm going for:

//pick up item off table

//draw polygon around item's spawn

//visual representation of how long until item appears

//clear polygon  

I know i could do it off of the polygon, and just have a timer, I'm just curious if I can draw inside the polygon, and how to go about it. Thanks everybody. 

Link to comment
Share on other sites

3 hours ago, FrostBug said:

Did something similar with hunter trap positions:

image.png.412a0a328a929ece5d690a2bc6aad269.png

By getting the positions polygon (position.getPolygon(bot)) and drawing the timer a little bit north of it; changing color based on % remaining

What do you mean by 'inside the polygon' ?

Perfect, exactely what I was in need of. I was hoping you'd be the one to respond to this post, love me some frost scripts.

  • Boge 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...