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

_ [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”.

In option “FE_BasicPawn” we can see that the function works

6678-sans+titre2.jpg

But the option “FE_Player” function does not work.

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)

__ [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”.

Dans les options du “FE_BasicPawn” on peut voir que la fonction marche.

6678-sans+titre2.jpg

Mais dans les option du “FE_Player” la fonction ne marche pas.

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.

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

1 Like