Topic: Updating Player Health and Damage power

Hi

I have a source version of UFE.
If any one have idea about how can i update my player's health and damage level by level.

Share

Thumbs up Thumbs down

Re: Updating Player Health and Damage power

Do you mean you want to increase damage and health per match fought, or according to some "level" stat you're adding in?  Either way, it's not supported out of the box, you'd need to mod it in...

Share

Thumbs up Thumbs down

Re: Updating Player Health and Damage power

Thank you for you replay,
And also can i create levels in game?

Share

Thumbs up Thumbs down

Re: Updating Player Health and Damage power

As in stages?  Yes, of course.  But UFE doesn't have any way to make them from within Unity itself. 

The best recommendation is to create it in your 3D package (Maya, Max, Blender etc) and import it into Unity as an FBX.

If you have something like Pro Builder, you could create levels in Unity with that to some degree.  There's a small mod to ensure it works properly though.

Share

Thumbs up Thumbs down

5 (edited by hardiknadiyapara 2015-03-05 05:53:37)

Re: Updating Player Health and Damage power

I write below code to change the damageOnHit

UFE.UFE_Config.player1Character.moves [0].attackMoves [0].hits [0].damageOnHit = 15.0f;

but it give me an error that
"An object reference is required to access non-static member `UFE.UFE_Config'"

Share

Thumbs up Thumbs down

Re: Updating Player Health and Damage power

Try "UFE.config" instead.

Share

Thumbs up Thumbs down

Re: Updating Player Health and Damage power

Make sure you read this page as well (coding with UFE):
http://ufe3d.com/doku.php/code

Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.