lolzinator42 Posted December 6, 2011 Share Posted December 6, 2011 (edited) I need to check if this script will actually run, because I don't think it is running. scn RadVisualScript4 short rnd float timer Begin ScriptEffectStart set rnd to GetRandomPercent If (timer < 30) set timer to timer + getSecondsPassed Else If (rnd >= 75) imod ImageSpaceConcussion endif endif End Begin ScriptEffectFinish rimod ImageSpaceConcussion End Edited December 6, 2011 by lolzinator42 Link to comment Share on other sites More sharing options...
Hazardousbio Posted December 6, 2011 Share Posted December 6, 2011 All the functions and structure is correct. but, you are running that in the wrong blocktype.... let me explain this code will only be used when the person gets affected by this buff/skill/effect. So, timer will only be 0 because you initialize the code when the time is zero and only run through it once. To fix this problem you can copy my edit. scn RadVisualScript4 short rnd float timer Begin ScriptEffectStart set rnd to GetRandomPercent End Begin GameMode; this is the main game loop If (timer < 30) set timer to timer + getSecondsPassed Else If (rnd >= 75) imod ImageSpaceConcussion endif endif End Begin ScriptEffectFinish rimod ImageSpaceConcussion End Link to comment Share on other sites More sharing options...
Oes10 Posted December 6, 2011 Share Posted December 6, 2011 Hey, i believe within a Effect Script (and only within ScriptEffectUpdate) you should use ScriptEffectElapsedSeconds instead of GetSecondsPassed. Try switching that out. Link to comment Share on other sites More sharing options...
Recommended Posts