SET_TIMECYCLE_MODIFIER doesn't work anymore?
-
This doesn't work, why?
if (e.KeyCode == Keys.K) { player.Health = 4901; dmg = 50; Function.Call(Hash.SET_TIMECYCLE_MODIFIER, "glasses_red"); Function.Call(Hash.SET_TIMECYCLE_MODIFIER_STRENGTH, 10000); GTA.UI.Screen.ShowSubtitle("You now should be injured", 2500); }
-
Forgot to mention - I removed all scripts that use timecycles to make sure there is no conflicts.
BTW Damage Effects script that uses timecycles works perfectly so what am I doing wrong?
-
@RusLanParty possibly needs to be ontick?
-
@JohnFromGWN it was inside an if statement ontick, but it didn't work so I moved it to onKeyDown for easier debugging.
-
@RusLanParty not sure why it won't work in on tick, but will it even work on key up or down, or does it likely need to be continuously updated?
-
@RusLanParty Your code works perfectly, your error is that the strength is a float, not an integer.
-
@JohnFromGWN that solved it, thank you!