Jump to content
  • 0

About progressbar


aadritch2

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  04/29/13
  • Last Seen:  

1.) Is it possible to detect when it is cancelled via moving or taking damage?
2.) Real problem: Character gets stuck when interrupting progressbar, can't move (but can still use items) until character select.

Realls makes me think because I made a previous script that uses progressbar, but that one I can cancel without getting stuck.
This one, which I literally just copied and paste from the first one and made adjustments, makes the character stuck when cancelled.
The difference is
Previous script: a custom function called upon item use.

Second script: from an "invisible" NPC (example:    -        script       NPCNAME      -,{  } )
 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

progressbar is like the "sleep" commands, it pauses the script until the time has passed.
To check if the player recieved damage/canceled by moving is to check afterwards for attached rids (playerattached).

I tried myself on it already for my custom Battleground Arena, but I had to remove it since it didn't work like I wanted.

Not sure why your character gets stuck, if you could show us your snippet maybe, then we could have a look at it. This goes at least for me, not sure about others tho xD.

Regards,
Chris

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
Answer this question...

×   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.

×
×
  • Create New...