Lua接口/服务端/LuaFnCreateBus
来自天龙知识库
跳到导航跳到搜索
在指定场景坐标创建载具,返回载具对象 ID。
Lua 调用
LuaFnCreateBus(sceneId, nBusDataID, pos, pos4, fDir)
服务端脚本中未检索到该接口的调用点(已检索 4245 个随包脚本)。
实现位于 LuaFnTbl_Bus.h。
参数
| 序号 | 参数 / 类型 | 说明 |
|---|---|---|
| 1 | sceneIdnumber
|
当前调用所在的场景 ID。 |
| 2 | nBusDataIDnumber
|
载具配置编号。 |
| 3 | posnumber
|
位置参数。 |
| 4 | pos4number
|
位置参数。 |
| 5 | fDirnumber
|
朝向数值。 |
返回值
根据执行分支,返回数量可能为 0、1 个(0 个表示无返回值)。返回类型包括 number。