04 - Checkpoint Variables &
2017-07-26 本文已影响5人
镜月s
编辑Tracker蓝图 作用是提供一些参数供外部自定义 游戏的内容 同时控制检查点的显示
添加Billboard component 用来在场景中显示图标
![](https://img.haomeiwen.com/i6852467/fbad5787a6608381.png)
添加变量用来在外部进行自定义设置 其中LevelMusic 和CheckpointSoundFx的类型是Ambiend sound
Checkpoints为蓝图类Checkpoint引用数组 (数组属性可以通过修改VariableType 右侧的图标)
![](https://img.haomeiwen.com/i6852467/51149a1fd6fe957c.png)
添加函数UpdateTimes 更新变量数据到PlayerController中
函数LapCheck 单圈检测 input为检测点数
![](https://img.haomeiwen.com/i6852467/e928deb73eda0477.png)
函数ActiveCheckpoint 激活指定的检测点 输入为Checkpoint引用
![](https://img.haomeiwen.com/i6852467/baf1596a5611621d.png)
函数RaceComplete 判断是否跑完全程 输出为bool类型
![](https://img.haomeiwen.com/i6852467/4f09c9534558a232.png)