Game Development Reference
In-Depth Information
mainChar
With a custom event named changeAmmoValue , I started looking for uiTextClass using
the same Get All Actors Of Class as before and then calling the SetAmmo event.
However, as we have set up this event in a way that requires it to pass an integer value, I
passed the value of the local variable bullets to it.
By calling changeAmmoValue on Event Begin Play , I was assured that every time the
level is started, the UI will be updated to the default value of the local variable bullets.
Due to the usage of a character-based blueprint, I was able to simply simulate a jump by
calling the Jump or Stop jump function on the controller when I had to.
Search WWH ::




Custom Search