# How work the ConstructionScript functions from a parent class in a child class

**URL:** <https://forums.unrealengine.com/t/how-work-the-constructionscript-functions-from-a-parent-class-in-a-child-class/283852>\
**Category:** C++\
**Tags:** parent, child-class, parent-class, unreal-engine, Blueprint, question\
**Created:** [May 20, 2014, 8:37pm UTC](https://forums.unrealengine.com/t/how-work-the-constructionscript-functions-from-a-parent-class-in-a-child-class/283852 "2014-05-20T20:37:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loux\_xavier](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/loux_xavier/32/1201519_2.png) [@Loux\_xavier](https://forums.unrealengine.com/u/Loux_xavier)\
**Post date:** [May 20, 2014, 8:37pm UTC](https://forums.unrealengine.com/t/how-work-the-constructionscript-functions-from-a-parent-class-in-a-child-class/283852/1 "2014-05-20T20:37:08Z")

</div>

**\_ [EN] \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_**

Hello!

To explain to you clear the class I “FE\_Player” which is parent the class “FE\_BasicPawn”.  
In the ConstructionScript of class “FE\_BasicPawn” I created a function for Heath  
the variable “MaxHeath” will be clamped 10 and 500,  
and “Heath” will be clamped 0 and “MaxHeath”.

 ![6677-sans+titre.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/3/f230aa7b7b125e6db34c38d1fc48a0b755e2a371.jpeg)

In option “FE\_BasicPawn” we can see that the function works

![6678-sans+titre2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/c/69cc2ec24be68110072e33d2cc2e2546efea4dd0.jpeg)

But the option “FE\_Player” function does not work.

[http://image.noelshack.com/fichiers/2014/21/1400617371-sans-titre3.jpg](http://image.noelshack.com/fichiers/2014/21/1400617371-sans-titre3.jpg)

And I do not see how work the functions of ConstructionScript from a parent class in a child class without having to copy paste.

Thank you for your response.

_(Sorry I use [translate.google.com](http://translate.google.com))_

**\_\_ [FR] \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_**

Bonjour !

Pour vous expliquer clairement j’ai la class “FE\_Player” qui est parentés à la class “FE\_BasicPawn”.  
Dans le ConstructionScript de la class “FE\_BasicPawn” j’ai créé une fonction pour la santé:  
la variable “MaxHeath” va être comprise entre 10 et 500,  
et “Heath” va être comprise entre 0 et “MaxHeath”.

 ![6677-sans+titre.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/3/f230aa7b7b125e6db34c38d1fc48a0b755e2a371.jpeg)

Dans les options du “FE\_BasicPawn” on peut voir que la fonction marche.

![6678-sans+titre2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/c/69cc2ec24be68110072e33d2cc2e2546efea4dd0.jpeg)

Mais dans les option du “FE\_Player” la fonction ne marche pas.

[http://image.noelshack.com/fichiers/2014/21/1400617371-sans-titre3.jpg](http://image.noelshack.com/fichiers/2014/21/1400617371-sans-titre3.jpg)

Et à par faire un copier coller je ne vois pas comment faire fonctionner les fonctions du ConstructionScript dans une class enfant.

Merci de vos réactions.

---

<div class="post-metadata">

**Author:** ![Loux\_xavier](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/loux_xavier/32/1201519_2.png) [@Loux\_xavier](https://forums.unrealengine.com/u/Loux_xavier)\
**Post date:** [October 15, 2015, 1:56am UTC](https://forums.unrealengine.com/t/how-work-the-constructionscript-functions-from-a-parent-class-in-a-child-class/283852/2 "2015-10-15T01:56:36Z")

</div>

I have found this answer long ago : Right clic on the Construction Script and clic on “Add call to parent function”.
