One Player Remaining Detector

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • UPDATED!
    Now get the collection
    Get One Verse Device that assigns a UI ( option can be removed) - and detects when players leave your game, then send an event when only one player is left in the game
    And
    A Verse device that increments when players spawn and decrements the player count when a player is eliminated, and when there is one player in the game- send an event to end the game!
    Get the the codes here
    dev.epicgames....
    QUICK NOTE
    Please note the UI does not update properly and is only there to help you visually see the player count. Feel free to remove this when implementing it into your game. You are able to see the events being called correctly in the log, and are able to add your own events to call
    This code was created with assistance of FortniteCreativeGPT -
    ( www.fortnitecreativegpt.com )
    FNC+GPT ( ‪@fncgpt‬ ) provided a structure and which I corrected and build from, combining elements from Maestrosharks UI Code (RUclips ‪@MaestroShark‬ )
    View FNC+GPT code beginnings at : chat.openai.co...
    I was able to improve upon the structure provided by FNC+GPT and fully develop the code.
    Learn more about FortniteCreative+GPT and stay up to date on the latest news! FortniteCreative+GPT Discord: / discord
    Get help in all your creative needs from Unreal Engine to UEFN in
    The Creative Blok Discord!
    / discord

Комментарии • 14

  • @YO_ITS_DRAGON
    @YO_ITS_DRAGON  6 месяцев назад

    One Player Remaining Detector Verse Device
    This device allows you to detect how many players spawn into the game and send an event when one player is left in the game.
    Get the Verse Snippet here
    dev.epicgames.com/community/snippets/yrV9/fortnite-one-player-remaining-detector-device
    QUICK NOTE
    Please note the UI does not update properly and is only there to help you visually see the player count. Feel free to remove this when implementing it into your game. You are able to see the events being called correctly in the log, and are able to add your own events to call

  • @chinonoob3219
    @chinonoob3219 6 месяцев назад +1

    I love your tutos, thanks

  • @501_Don
    @501_Don 6 месяцев назад +1

    need something
    like this to trigger a hud device at the end of rounds

  • @steve_works
    @steve_works 6 месяцев назад +1

    can you show how to make a simulator in uefn?

  • @Fallen-Champ
    @Fallen-Champ 6 месяцев назад +1

    Would it be possible to have 2 teams and when only one player is left in any one team an icon then shows above the players head - so basically it would be like Last Man Standing for team and to add further pressure onto the last player the opposite team would know where they are as an icon would appear

    • @YO_ITS_DRAGON
      @YO_ITS_DRAGON  6 месяцев назад

      I believe this is possible. You would need to adjust the code so that it subscribes to on player eliminated ( instead of on player removed) - then assign the ui when the last player is counted.

  • @richimpulse
    @richimpulse 6 месяцев назад +1

    Hey Dragon! Would it be possible to show how to add an end game device to this so the round ends when one player is remaining? I've tried to figure it out, but it's just not going in 😅

    • @YO_ITS_DRAGON
      @YO_ITS_DRAGON  6 месяцев назад +1

      for sure. Now keep in mind this is set send an event upon player removal - meaning when they leave the game and go back to lobby - if that is still what you are wanting then the only change you will need is to add an end game device to the system, make it editable, then under if (PlayerCount = 1): - add your event EndGameDevice.Activate() - of course whatever you name your @editable would go in front of Activate ---
      If do not want to send an event upon player removal, and want to send one via elimination instead - You would need to adjust the code so that it subscribes to on player eliminated event ( instead of on player removed) - then do the same :add an end game device to the system, make it editable, then under if (PlayerCount = 1): - add your event EndGameDevice.Activate() - of course whatever you name your @editable would go in front of Activate ---

    • @richimpulse
      @richimpulse 6 месяцев назад +1

      @@YO_ITS_DRAGON Thank you!
      Yes am wanting it to activate for eliminations instead, so i used the section that was commented out (i hope this is right?)
      # A function to call when a player is eliminated to check player count and send an event

    • @YO_ITS_DRAGON
      @YO_ITS_DRAGON  6 месяцев назад +1

      @@richimpulse ok, you may need to make a few more adjustments - jump into The Creative Blok Discord, get the UEFN role and jump into UEFN help channel and I will do my best to assist : discord.com/invite/P5JU6gzUFV

    • @richimpulse
      @richimpulse 6 месяцев назад +1

      @@YO_ITS_DRAGON Sure thing! It will probably be tomorrow now as I've been trying to figure this out for hours and it's fried my brain 😂

  • @oreidi3573
    @oreidi3573 6 месяцев назад +1

    Please make One Team Remaining Detector

    • @YO_ITS_DRAGON
      @YO_ITS_DRAGON  6 месяцев назад

      Thats a great suggestion to add to the collection. When I have time, I will be sure to include a version for this!

  • @georgetsamis8940
    @georgetsamis8940 6 месяцев назад

    I am making a map in Fortnite creative and I have set it to have 10 rounds with two teams and I have an addition from the creative setting to have a team score but every time a team wins when the second third enters until the tenth round the score does not change and remains 0 wins for both teams how can I fix this?