# How can I process an action in unreal engine?

**URL:** https://discourse.kitware.com/t/how-can-i-process-an-action-in-unreal-engine/1003
**Category:** Pulse Physiology Engine
**Created:** [March 16, 2023, 9:00pm UTC](https://discourse.kitware.com/t/how-can-i-process-an-action-in-unreal-engine/1003 "2023-03-16T21:00:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mrgreen](https://discourse.kitware.com/user_avatar/discourse.kitware.com/mrgreen/32/665_2.png) [@mrgreen](https://discourse.kitware.com/u/mrgreen)
#### Post date: [March 16, 2023, 9:00pm UTC](https://discourse.kitware.com/t/how-can-i-process-an-action-in-unreal-engine/1003/1 "2023-03-16T21:00:07Z")

</div>

Howdy! I’m a complete newbie, but I want to use pulse with blueprints, but I can’t get the processAction function to work. I just get errors and it never seems to do anything. (Also, I noticed that in the preview for ue5.1, the example pulse component’s “IED Explosion” doesn’t seem to do anything as well)

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [March 16, 2023, 9:48pm UTC](https://discourse.kitware.com/t/how-can-i-process-an-action-in-unreal-engine/1003/2 "2023-03-16T21:48:36Z")

</div>

We have a sample project here  
[https://gitlab.kitware.com/physiology/unreal](https://gitlab.kitware.com/physiology/unreal)

You should be able to pull these and see how this example is working

---

<div class="post-metadata">

### Author: ![mrgreen](https://discourse.kitware.com/user_avatar/discourse.kitware.com/mrgreen/32/665_2.png) [@mrgreen](https://discourse.kitware.com/u/mrgreen)
#### Post date: [March 17, 2023, 12:37pm UTC](https://discourse.kitware.com/t/how-can-i-process-an-action-in-unreal-engine/1003/3 "2023-03-17T12:37:52Z")

</div>

Thanks! But for some reason, I get “incompleted type” errors in my ide, but it compiles fine.  
 ![image](https://discourse.kitware.com/uploads/default/original/1X/71eb5a679ab959302c35edd45095a7ad341bb203.png)

Also, I can’t seem to be able to parse `eHemorrhage_Compartmen`t as an input to a function - it won’t compile.

Also, I’m wondering what the deal is with `WITH_PULSE`. Like, why is it used and is it necesary?

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [March 17, 2023, 1:24pm UTC](https://discourse.kitware.com/t/how-can-i-process-an-action-in-unreal-engine/1003/4 "2023-03-17T13:24:01Z")

</div>

Check which [SEHemorrhage.h](https://gitlab.kitware.com/physiology/engine/-/blob/integration/src/cpp/cdm/patient/actions/SEHemorrhage.h) you are pulling in, `eHemorrhage_Compartmen` is defined there.

The `WITH_PULSE` is there from a collaborator helping write the plugin  
I believe they had it in there to be able to easily turn off Pulse in the build to perform testing and timing with and with out Pulse easily

---

<div class="post-metadata">

### Author: ![mrgreen](https://discourse.kitware.com/user_avatar/discourse.kitware.com/mrgreen/32/665_2.png) [@mrgreen](https://discourse.kitware.com/u/mrgreen)
#### Post date: [March 17, 2023, 1:25pm UTC](https://discourse.kitware.com/t/how-can-i-process-an-action-in-unreal-engine/1003/5 "2023-03-17T13:25:38Z")

</div>

Alright, thanks!
