Custom c++ Scripting question [message #75963] |
Sun, 04 April 2004 15:28 |
|
TheKGBspy
Messages: 96 Registered: April 2003
Karma: 0
|
Recruit |
|
|
lately i worked on my scripts for vengeance. they work.. but i have some problem if i do some stuff.
preset = "none";
while (preset == "none")
{
rand = Commands->Get_Random_Int(1,4);
switch(rand)
{
case 1: preset = Get_Parameter("Tree1_Preset");
break;
case 2: preset = Get_Parameter("Tree2_Preset");
break;
case 3: preset = Get_Parameter("Tree3_Preset");
break;
case 4: preset = Get_Parameter("Tree4_Preset");
break;
}
}
this is a part of my code. if i remove this part of the code and i set up the preset value by Get_Parameter("Tree1_Preset"); (or tree2 or ....) it work, but if i put my while and switch command the game freze... is that because the while and the switch freeze up the game? i remember in delphi the while stop the whole program.. until the while is finished.. i want to know if this is the same problem... and how to fix it.
Ra2: Vengeance Project lead(it's Dead... sorry)
An empty Ghost since 2005.
|
|
|
|
Custom c++ Scripting question [message #75972] |
Sun, 04 April 2004 16:07 |
|
TheKGBspy
Messages: 96 Registered: April 2003
Karma: 0
|
Recruit |
|
|
onyl sleep command? no attribute seeting a number of ms?
Ra2: Vengeance Project lead(it's Dead... sorry)
An empty Ghost since 2005.
|
|
|
|
|
|
|