查看“︁Lua接口/服务端函数索引/载具与乘客”︁的源代码
来自天龙知识库
←
Lua接口/服务端函数索引/载具与乘客
跳到导航
跳到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
__NOTOC__ <div class="lua-reference" style="max-width:1200px;margin:0 auto;line-height:1.8;color:#29343a;font-family:Arial,'Microsoft YaHei',sans-serif;letter-spacing:0;overflow-wrap:anywhere;"> [[首页|首页]] · [[Lua接口/服务端函数索引|服务端接口]] · [[Lua接口/服务端调用约定|调用约定]] <div style="padding:14px 0;border-top:3px solid #287568;">载具与乘客:16 个接口,16 个调用名称。</div> {| class="wikitable" style="width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;" ! scope="col" style="text-align:left;background:#edf3f2;padding:8px;width:36%;" | 函数 / 别名 ! scope="col" style="text-align:left;background:#edf3f2;padding:8px;" | 调用与用途 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnBusAddPassenger|LuaFnBusAddPassenger]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnBusAddPassenger(sceneId, nBusObjID, nPassengerID)</code><br />把指定乘客加入载具。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnBusAddPassenger_Shuttle|LuaFnBusAddPassenger_Shuttle]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnBusAddPassenger_Shuttle(sceneId, nBusObjID, nPassengerID, nNpcID, bOutputError)</code><br />检查停靠条件后,让指定乘客登上接驳载具。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnBusAddPassengerList|LuaFnBusAddPassengerList]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnBusAddPassengerList(sceneId, nBusObjID, nNpcID, bOutputError, nPassengerCount, ...)</code><br />检查停靠和容量条件后,批量让乘客登上载具,每次最多处理 8 名。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnBusGetObjIDByGUID|LuaFnBusGetObjIDByGUID]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnBusGetObjIDByGUID(sceneId, uGUID)</code><br />根据载具 GUID 查询其场景对象 ID。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnBusRemoveAllPassenger|LuaFnBusRemoveAllPassenger]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnBusRemoveAllPassenger(sceneId, nBusObjID)</code><br />让载具中的全部乘客下车。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnBusRemovePassenger|LuaFnBusRemovePassenger]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnBusRemovePassenger(sceneId, nBusObjID, nPassengerID)</code><br />让指定乘客离开载具。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnBusStart|LuaFnBusStart]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnBusStart(sceneId, nBusObjID)</code><br />启动载具的巡逻路径。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnCreateBus|LuaFnCreateBus]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnCreateBus(sceneId, nBusDataID, pos, pos4, fDir)</code><br />在指定场景坐标创建载具,返回载具对象 ID。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnCreateBusByPatrolPathId|LuaFnCreateBusByPatrolPathId]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnCreateBusByPatrolPathId(sceneId, nBusDataID, nPatrolPathID, bAthwart)</code><br />按巡逻路径创建载具,返回载具对象 ID。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnDeleteBus|LuaFnDeleteBus]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnDeleteBus(sceneId, nBusObjID)</code><br />删除指定载具。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnGetBusPassengerCount|LuaFnGetBusPassengerCount]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnGetBusPassengerCount(sceneId, nBusObjID)</code><br />读取载具当前乘客人数。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnGetBusPassengerIDByIndex|LuaFnGetBusPassengerIDByIndex]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnGetBusPassengerIDByIndex(sceneId, nBusObjID, nIndex)</code><br />按乘客索引读取其场景对象 ID。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnGetBusPassengerIDIsInBus|LuaFnGetBusPassengerIDIsInBus]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnGetBusPassengerIDIsInBus(sceneId, selfId)</code><br />判断当前玩家是否处于载具中。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnGetBusScriptParam|LuaFnGetBusScriptParam]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnGetBusScriptParam(sceneId, nBusObjID, nIndex)</code><br />读取载具的脚本数值参数。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnIsInBus|LuaFnIsInBus]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnIsInBus(sceneId, selfId, nTargetID)</code><br />判断指定目标玩家是否处于载具中。 |- | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | [[Lua接口/服务端/LuaFnSetBusScriptParam|LuaFnSetBusScriptParam]] | style="padding:8px;vertical-align:top;overflow-wrap:anywhere;" | <code style="white-space:normal;overflow-wrap:anywhere;">LuaFnSetBusScriptParam(sceneId, nBusObjID, nIndex, nValue)</code><br />设置载具的脚本数值参数。 |} </div>
返回
Lua接口/服务端函数索引/载具与乘客
。
导航菜单
页面操作
页面
讨论
阅读
查看源代码
历史
页面操作
页面
讨论
更多
工具
个人工具
创建账号
登录
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
搜索
工具
链入页面
相关更改
页面信息