当前位置:网站首页>[ue5] blueprint making simple mine tutorial
[ue5] blueprint making simple mine tutorial
2022-07-02 10:00:00 【Qiao'an fish】
This is a small effect that I researched myself , But it can't cope with complex situations .
The effect of Mines —— The player presses the key to place a mine ,AI Explosion after encountering .
Split the whole process :
1. The player presses the key to place the mine model .
2.AI After encountering mines ,AI disappear .
3. Mines play explosion effects , Disappearance of Mines .
One 、 Press the key to place mines
1. Make mine blueprints
Create a Actor The blueprint , Add any MESH Components as models .
Add trigger , You can choose any shape .
( When touching this trigger , Play the landmine incident )
The size of the trigger is larger than the model , Otherwise, when the model collides ,AI Unable to trigger .
2. Press the key to place mines
Open the player character blueprint , Right click input E, stay “ Keyboard events ” Add “E” event .
Press E Key will trigger this event .
Drag and drop E The event Pressed Pin , establish “ Generate Actor” function .


It's generating Actor Of class Choose the mine blueprint we created 
The name of the function will show the class we selected .
Next, we need to give the location of this function , It can be generated at the current player position .
Create get Actor The position function , And generate Actor Of Spawn Transform Pin to pin , A vector transformation will automatically appear in the middle .
After placement , You will find the camera bounced off , I can't see the players .
This is because mines collide , Play the character away .
Select from the mine blueprint mesh Components , In the details panel, change the collision preset to NoCollision, The collision of mines is closed .
Play again , This time the mine didn't bounce the player away .
Two 、AI Hit a mine explosion
1. establish AI Communicate with mines
We can use AI The trigger of the mine overlaps with the trigger of the mine to create an explosion event , however AI Will be deleted after triggering , In order to ensure that both disappear at the same time , Still need to be in AI Establish blueprint communication with mines , To inform the mine explosion .
Right click > The blueprint > Blueprint interface , Establish blueprint communication .
The name IF_ The explosion .
Open blueprint communication , Modify the function name as explosion.
such , Blueprint communication is established .
2.AI The explosion
open AI Character blueprint , Select capsule components , Add the event when components begin to overlap in the details panel .
Execute pins when dragging components to start overlapping , Create what we just set Explosion function ,other actor Connect with the goal .
In this way, the mine is notified to start the explosion .
Similar to the method of generating mines , stay AI The current position generates an explosion effect ,Class Choose your own explosion Blueprint is enough .
And then to delete AI Model , establish Delete Actor function .
AI The explosion effect of is finished :
3、 ... and 、 Mine explosion
Just make the mine model disappear .
Open mine blueprint , We are going to call the explosion . Input explosion, Note that we have to choose events Explosion.
Destroy directly Actor That's it .


The effect is achieved !
I said before. , This is just a simple effect , If there are multiple colliders , Will trigger an explosion .
So you also need to filter triggers .
边栏推荐
- C语言之判断直角三角形
- Mobile mall app solution: how much is it to make an app? Detailed explanation of APP mall development content
- 阿里云短信服务
- Cmake command - Official Document
- 上班第一天的报错(Nessus安装winpcap报错)
- 职业规划和发展
- Alibaba / popular JSON parsing open source project fastjson2
- Image recognition - Data Acquisition
- 【虚幻】按键开门蓝图笔记
- QT qlabel style settings
猜你喜欢

2837xd代码生成模块学习(3)——IIC、eCAN、SCI、Watchdog、eCAP模块

Save video opencv:: videowriter

Junit4 runs MVN test test suite upgrade scheme

PI control of three-phase grid connected inverter - off grid mode

Skywalking理论与实践

This monitoring system makes workers tremble: turnover intention and fishing can be monitored. After the dispute, the product page has 404

BugkuCTF-web21(详细解题思路及步骤)

FragmentTabHost实现房贷计算器界面

阿里云SLS日志服务

C language programming problems
随机推荐
Read 30 minutes before going to bed every day_ day4_ Files
Off grid control of three-phase inverter - PR control
Skywalking theory and Practice
2837xd code generation module learning (2) -- ADC, epwm module, timer0
图像识别-数据增广
QT qlabel style settings
Ckeditor 4.10.1 upload pictures to prompt "incorrect server response" problem solution
图像识别-数据采集
ICLR 2022: how does AI recognize "things I haven't seen"?
Alibaba cloud ack introduction
Skywalking理论与实践
Read Day6 30 minutes before going to bed every day_ Day6_ Date_ Calendar_ LocalDate_ TimeStamp_ LocalTime
C语言之到底是不是太胖了
College Students' CET-4 and CET-6 composition template (self created version, successfully crossed CET-6)
QT QLabel样式设置
阿里云短信服务
2837xd code generation - Supplement (1)
虚幻——动画蓝图、状态机制作人物走跑跳动作
2837xd 代码生成——StateFlow(1)
三相逆变器离网控制——PR控制