中级玩家
 
- 贡献度
- 0
- 金元
- 1309
- 积分
- 131
- 精华
- 0
- 注册时间
- 2020-12-22
|
StatValue = -0.0015; StatType = 'TimeDilationSandevistanTimeScale'; PID = Game.GetPlayer():GetEntityID(); SS = Game.GetStatsSystem(); currValue = SS:GetStatValue(PID, StatType) print(" - Current [ "..StatType.. " ] value: "..string.format("%f", currValue)) if currValue == StatValue then print(" - "..StatType.." is already "..StatValue..", no need to edit. \n ") else statMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatType, 'Additive', StatValue); SS:RemoveAllModifiers(PID, StatType, true) SS:AddSavedModifier(PID, statMOD) print(" - [ "..StatType.." ] SETTED TO : "..string.format("%f", StatValue).." \n ") end
|
|