Function to be called in "OnMouseClick" :
function gradual_solidity(int max_transparency, int speed, int type, int id){
Ã, int tran = 100;
Ã, int newtran = 100;
if (speed <= 100){
Ã, Ã, while(newtran > max_transparency){Ã, Ã, Ã, Ã,Â
newtran = tran - 1;
Ã, Ã, Ã, Wait(1);
Ã, Ã, Ã, if (type == 0){ //if it's for a character
Ã, Ã, Ã, Ã, SetCharacterTransparency(id, tran);
Ã, Ã, Ã, Ã, }
Ã, Ã, Ã, else if (type == 1){ //if it's for a GUI
Ã, Ã, Ã, Ã, SetGUITransparency(id, tran);
Ã, Ã, Ã, Ã, }
Ã, Ã, Ã, }
Ã, Ã, }
Ã, }
At run-time:
Error: run_text_script1: error -6 (Error (line 80): Script appears to be hung (150001 while loop iterations without an update)) running function 'on_mouse_click'
I see an update.Ã, But, I'm obviously doing something wrong.
Thanks for the help.Ã, :D
function gradual_solidity(int max_transparency, int speed, int type, int id){
Ã, int tran = 100;
Ã, int newtran = 100;
if (speed <= 100){
Ã, Ã, while(newtran > max_transparency){Ã, Ã, Ã, Ã,Â
newtran = tran - 1;
Ã, Ã, Ã, Wait(1);
Ã, Ã, Ã, if (type == 0){ //if it's for a character
Ã, Ã, Ã, Ã, SetCharacterTransparency(id, tran);
Ã, Ã, Ã, Ã, }
Ã, Ã, Ã, else if (type == 1){ //if it's for a GUI
Ã, Ã, Ã, Ã, SetGUITransparency(id, tran);
Ã, Ã, Ã, Ã, }
Ã, Ã, Ã, }
Ã, Ã, }
Ã, }
At run-time:
Error: run_text_script1: error -6 (Error (line 80): Script appears to be hung (150001 while loop iterations without an update)) running function 'on_mouse_click'
I see an update.Ã, But, I'm obviously doing something wrong.
Thanks for the help.Ã, :D