当前位置:网站首页>UE4 钥匙开门
UE4 钥匙开门
2022-07-22 04:46:00 【Zhichao_97】
在上一篇博客的基础上(UE4 键盘按键实现开关门)增加钥匙开门的功能
实现效果:
20220721
实现步骤:
1.点击 变量
2.命名 是否可以开门
3.将其拖入 事件图表
5.如下图,搜索 分支 并点击 ,来判断当前的布尔值是True或False
6.如下图,连线
7.分支的FALSE一端连接打印字符串
因此,现在只要当拾取钥匙时,将布尔值改为True就可以开门了
8.在内容浏览器中点击鼠标右键,点击蓝图类
9.点击Actor,命名蓝图为Key_BP
10.从网上下载个钥匙模型,需要的话点击这里:钥匙的FBX格式3D模型
11.双击打开Key_BP,将静态网格体key移入进来
12.添加球形碰撞
13.点击添加两个重叠的事件
14.创建 获取玩家控制器、键盘 E、Gate、启用输入、禁用输入,并连线
15.创建 获取类的所有actor,并选择Actor Class为Door_BP
16.继续创建GET(搜 工具 数组)、SET 是否可以开门
17.为了让拿了钥匙后看不到钥匙,需要销毁它
边栏推荐
- Simulation Implementation of string
- [JS] scope and scope chain
- Fastjson code execution cve-2022-25845
- Kingbasees Security Guide for Jincang database -- 2.2. prevention of kingbasees' threats to database security
- Bryntum Scheduler Pro 5.0.6 \Gantt\Crack
- Informatics Olympiad all in one 1974: [16noip popularization group] palindrome date | Luogu p2010 [noip2016 popularization group] palindrome date
- Detailed explanation of PN communication between botu PLC and ABB Inverter
- [leetcode weekly race -- hash table number pairs] 6164. Maximum sum of digit and equal number pairs
- [ARC116F] Deque Game
- 【Leetcode数组--排序+辗转相除法最大公约数】6122.使数组可以被整除的最少删除次数
猜你喜欢
随机推荐
Switch and router technology: OSPF route redistribution, OSPF NSSA area and OSPF virtual link
BUUCTFReservewp(3)
Leetcode 234. 回文链表
Leetcode 172. 阶乘后的零
用c语言编写一个函数用来删除字符串中的空格并返回空格个数
高数_第2章多元函数微分学_隐函数的偏导数
模型压缩、加速及移动端部署
AcWing_ 11. Number of solutions for knapsack problem_ dp
AT4162 [ARC099C] Independence
CF464E The Classic Problem
Interview questions of computer network transmission layer
力扣每日一题-第41天-125. 验证回文串
[ARC116F] Deque Game
C ftp detects whether the directory exists and creates a folder
JVM: parental delegation mechanism for class loading
Fundamentals of action theory
How can the easycvr platform access special devices without authentication?
Complex network modeling (propagation phenomenon on the network)
[SSM]SSM整合①(整合配置)
AT4163 [ARC099D] Eating Symbols Hard