当前位置:网站首页>UE4 多个角色控制权的切换
UE4 多个角色控制权的切换
2022-07-26 04:22:00 【Zhichao_97】
实现效果:

实现步骤:
1.首先向场景中拖入3个角色

2.在世界大纲中选中所有角色 (点击第一个角色,按住shift再点击最后一个 或 按住Ctrl依次点击三个角色)

3.打开关卡蓝图

4.将三个角色拖入关卡蓝图中
5.创建玩家控制器和控制节点(来更改要操控的角色)

6.再复制两个控制节点,因为一共有3个角色

7.创建MultiGate节点

8.点击再添加一个引脚

9.连线

10.创建一个键盘 1 节点,再点击编译

11.让一个角色先获得控制权

此时已经可以依次切换3个角色的控制,但是不能重置,就是无法从第3个角色切换回第一个角色。
12.可以添加一个节点来重置

或
添加一个自定义事件来重置

或
勾上 Loop
此时效果如下:

如何添加切换角色时的过渡效果?
13.新创建如下图的两个节点

14.设置切换时间为2秒

15.添加延迟节点

16.再复制两份 使用混合设置视图目标 和 延迟

边栏推荐
- 规则引擎Drools的使用
- When you try to delete all bad code in the program | daily anecdotes
- Use of anonymous functions
- Page pull-up refresh and pull-down loading
- 解决:RuntimeError: Expected object of scalar type Int but got scalar type Double
- Under the high debt of Red Star Macalline, is it eyeing new energy?
- 再获认可 | 赛宁网安连续上榜《CCSIP 2022中国网络安全产业全景图》
- Maximum average value of continuous interval
- The era of smart clothes has come. Zhinar invites you to discuss swords in Yangcheng. Guangya Exhibition is waiting for you on August 4
- Life related - ten years of career experience (turn)
猜你喜欢
![Matrix and Gauss elimination [matrix multiplication, Gauss elimination, solving linear equations, solving determinants] the most detailed in the whole network, with examples and sister chapters of 130](/img/84/e5cb5199fe4602440b50dfc4afe963.gif)
Matrix and Gauss elimination [matrix multiplication, Gauss elimination, solving linear equations, solving determinants] the most detailed in the whole network, with examples and sister chapters of 130

Segger embedded studio cannot find xxx.c or xxx.h file

What if win11 cannot wake up from sleep? Solution of win11 unable to wake up during sleep

p-范数(2-范数 即 欧几里得范数)

Huawei issued another global convening order of "genius youth", and some people once gave up their annual salary of 3.6 million to join

Pat class a 1039 course list for student

文献|关系研究能得出因果性结论吗

What are the consequences and problems of computer system restoration

Firewall command simple operation

TIA botu WinCC Pro controls the display and hiding of layers through scripts
随机推荐
Design and implementation of smart campus applet based on cloud development
Wu Enda's machine learning after class exercises - linear regression
1. Excel的IF函数
规则引擎Drools的使用
What if win11 cannot wake up from sleep? Solution of win11 unable to wake up during sleep
Day26 job
[binary tree] the longest interleaved path in a binary tree
APISIX 在 API 和微服务领域的探索
egg-ts-sequelize-CLI
Scroll view pull-down refresh and pull-up load (bottom)
Li Kou daily question - day 42 -661. Picture smoother
青少年创客教育的创意设计原理
egg-sequelize TS编写
Pathmatchingresourcepatternresolver parsing configuration file resource file
智装时代已来,智哪儿邀您一同羊城论剑,8月4日,光亚展恭候
Use of anonymous functions
P-norm (2-norm is Euclidean norm)
机器学习之信用卡欺诈检测
Several methods of realizing high-low byte or high-low word exchange in TIA botu s7-1200
【SVN】一直出现 Please execute the ‘Cleanup‘ command,cleanup以后没有反应的解决办法