蓝宇传奇技术_蓝宇传奇工具_传奇脚本_传奇素材_蓝宇传奇版本库_蓝宇传奇一条龙_蓝宇传奇发布网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 43|回复: 0

设置传奇人物足迹特效教程-996引擎

[复制链接]
发表于 4 天前 | 显示全部楼层 |阅读模式
设置足迹特效命令SetMoveEff 参数1
参数1:特效ID



[@设置足迹]
#if
#act
SetMoveEff 256
SENDMSG 5 添加足迹脚印成功!



;LUA例子
[[服务端]]
setotherparams(actor,1,3)
-- setotherparams(actor,2,256)
setotherparams(actor,2,414)

[[客户端]]
SL:RegisterLUAEvent(LUA_EVENT_ACTOR_GMDATA_UPDATE, "ACTOR_GM_DATA", function (tab)
SL:dump(tab,"自定义数据改变")
SL:dump(SL:GetMetaValue("ACTOR_GM_DATA",tab.id),"获取actor的GM自定义数据")
end)


[[足迹示例]]
local function moveEvent(data)
local actorID = data and data.id
if actorID then
local posX = SL:GetMetaValue("ACTOR_POSITION_X", actorID)
local posY = SL:GetMetaValue("ACTOR_POSITION_Y", actorID)
local dir = SL:GetMetaValue("ACTOR_DIR", actorID)
local effectModel = SL:GetMetaValue("ACTOR_GM_DATA", actorID)[1]
local effectID = SL:GetMetaValue("ACTOR_GM_DATA", actorID)[2]
if effectID ~= 0 and posX and posY then
local actBegin = data.act
if actBegin == 1 or actBegin == 6 or actBegin == 17 then
local eff = GUI:Effect_Create(GUI:Attach_SceneB(), string.format("foot_effect%s_%s%s", actorID, posX, posY), posX, posY, effectModel, effectID, 0,0 , dir, 0.8)
GUI:setScale(eff, 0.3)
if eff then
GUI:Effect_addOnCompleteEvent(eff, function()
GUI:removeFromParent(eff)
end)
end
end
end
end
end
SL:RegisterLUAEvent(LUA_EVENT_PLAYER_ACTION_BEGIN, "GUIUtil", moveEvent)
SL:RegisterLUAEvent(LUA_EVENT_NET_PLAYER_ACTION_BEGIN, "GUIUtil", moveEvent)


回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

QQ|小黑屋|三下五除二-蓝宇传奇技术工具脚本素材版本库一条龙下载吧 ( 湘ICP备16009605号-1 )

GMT+8, 2026-1-19 08:51 , Processed in 0.103676 second(s), 23 queries .

热血传奇 chuanqi! X3.4

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表