恭维、拥抱等技能冷却的MOD兼容4.15吗?
希望谁试验过的说下。谢谢! 就两段代码像这样
-- Part of Reddawg99's Modifications
if IsPlayer then
local TimeUntilRepeat = 0.1
if not IsPlayer then
local TimeUntilRepeat = mdata_GetTimeOut(MeasureID)
end
end
if not ai_StartInteraction("", "Destination", 500, InteractionDistance) then
StopMeasure()
return
end
-- -------------------
-- BlockSocialMeasures
-- -------------------
function BlockSocialMeasures(ActorAlias, TimeOut)
local IsPlayer = dyn_IsLocalPlayer("")
if IsPlayer then
TimeOut = 0.1
if not IsPlayer then
if TimeOut == nil then
TimeOut = 2
end
end
end
SetRepeatTimer(ActorAlias, GetMeasureRepeatName2("Flirt"), TimeOut)
SetRepeatTimer(ActorAlias, GetMeasureRepeatName2("HugCharacter"), TimeOut)
SetRepeatTimer(ActorAlias, GetMeasureRepeatName2("KissCharacter"), TimeOut)
SetRepeatTimer(ActorAlias, GetMeasureRepeatName2("MakeACompliment"), TimeOut)
end
提取出来然后移植
其他技能也可以这样用
测试么 你自己来吧 我看原来的那个是好几个文件的,怎么这个就加这点就行了?
具体怎么做能不能详细教下谢谢!!! 那文件在ScriptsLibrary下。。
页:
[1]