How to make different numbers of ammos for different levels ?
Example: I want to make a shooter game, which contains 50 or more level .so i want to make that my first person player is having 10 ammos in 1st level, 20 ammos in 2nd level .....and so on., and i am using line trace by channel in my game. please help me.
asked Feb 25 '19 at 10:13 AM in Blueprint Scripting
I think you should have a look at the basic of unreal first, cause storing variable and changing the value is one of the most common thing.
Here a introduction to blueprint: https://api.unrealengine.com/INT/Videos/PLZlv_N0_O1gY35ezlSQn1sWOGfh4C7ewO/EFXMW_UEDco/index.html
So first theres no specific way of doing what you asking for, I can think about 3-4 way of doing this quickly. First way would be to simply increase by 10 the variable «ammos» store in your «Game Instance» object, which is a persistent object. That mean you can easily access this from any level OR blueprint.
Because I got the feeling you are really new to unreal, here a video that explain how to use «Game Instance».
Hope it help!
answered Feb 25 '19 at 10:50 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here