# GENERATED\_BODY() and UFUNCTION(NetMulticast, Reliable) doesnt work together

**URL:** <https://forums.unrealengine.com/t/generated-body-and-ufunction-netmulticast-reliable-doesnt-work-together/312072>\
**Category:** C++\
**Tags:** compilation-error, unreal-engine, question, CPP\
**Created:** [March 22, 2015, 12:21am UTC](https://forums.unrealengine.com/t/generated-body-and-ufunction-netmulticast-reliable-doesnt-work-together/312072 "2015-03-22T00:21:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EternalWalker777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EternalWalker777](https://forums.unrealengine.com/u/EternalWalker777)\
**Post date:** [March 22, 2015, 12:21am UTC](https://forums.unrealengine.com/t/generated-body-and-ufunction-netmulticast-reliable-doesnt-work-together/312072/1 "2015-03-22T00:21:56Z")

</div>

My Error is described here:

> **[Error with Macro NetMulticast at GENERATED\_BODY()](https://forums.unrealengine.com/questions/197352/error-with-macro-netmulticast-at-generated-body.html)**
>
> I want to use UFUNCTION(NetMulticast, Reliable) My goal: If i call Die() on the server i want that all clients call Die too, because all instances should die. .h : virtual bool Die(); UFUNCTION(NetMulticast, Reliable) void Client\_Die(); .cpp : ...

If i use `UFUNCTION(NetMulticast, Reliable)` and i want to use `GENERATED_BODY()` i get these described errors. But if i use `GENERATED_UCLASS_BODY()` it compiles.

This is bad because `GENERATED_UCLASS_BODY()` is deprecated, right?

How can i solve this problem/bug?

---

<div class="post-metadata">

**Author:** ![EternalWalker777](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EternalWalker777](https://forums.unrealengine.com/u/EternalWalker777)\
**Post date:** [March 31, 2015, 2:43pm UTC](https://forums.unrealengine.com/t/generated-body-and-ufunction-netmulticast-reliable-doesnt-work-together/312072/2 "2015-03-31T14:43:58Z")

</div>

does someone work on this bug?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [March 31, 2015, 7:32pm UTC](https://forums.unrealengine.com/t/generated-body-and-ufunction-netmulticast-reliable-doesnt-work-together/312072/3 "2015-03-31T19:32:28Z")

</div>

Hi Wandêrer,

Since your other post contains all of the relevant information, I will focus on that post.
