Hey everyone,
I do have a question about scripting within a quest stage, I have the following script:
while (true)
if (Game.GetPlayer().IsInCombat())
Game.GetPlayer().SetActorValue("SpeedMult", 100.0)
else
Game.GetPlayer().SetActorValue("SpeedMult", 37.0)
endif
endWhile
so, the point is, if I normally walk around, starting a battle etc. nothing will happen, the first speedmult value will stay active, until I'm going to open the menu. After closing the menu again the new speedmult value is active. But why? Does anyone know how the creation engine handles the SetActorValue? Because the while loop is working as intended, because watching the value constantly with GetActorValue will deliver the correct value.
P.S.: Yes, don't use a while loop like this, without a break condition, this is only for testing something.
Cheers!