Damage Volume Player Elimination Device
Module — 2 files
These files compile together (same module folder).
babayaga_device.verse
#BABA YAGA DEVICE - Eliminate Players on Contact
# Verse Snippet
# Author: Dragon (SAC BLZE.DRAGON) (www.dragonstudio.pro)
# This Snippet is best for Intermediate Verse/ UEFN Users
#CREDIT ATTRIBUTION
# Please provide credit attribution to Dragon (Youtube @Yo_Its_Dragon)
# and Walhbeck Warforge (Youtube @WarforgeXP) as elements of his script were used to develop this mechanic. (Youtube @WarforgeXP)
# If used in a project, Send me a screenshot on Twitter! I will check out your game!
# Don't forget to share this snippet with others
# if it helped you.
# Get Your Own FortniteCreative ChatGPT AI Assistant! With FortniteCreative+GPT
# https://chat.openai.com/g/g-JiEciihGH-fortnitecreative-gpt
# - - - - - - - - - - Material - - - - - - - - - - - #
# Create an invisible Material (works with a material instance as well)
# - - - - - - - - - - DEVICES AND SETTINGS - - - - - - - - - - - #
# TEAMS/CLASSES
# You must have Three Teams. Team 3/ Class 3 Global,
# Team 1/Class 1(Seeker/Babayaga), Team 2/Class 2 (Hiders/Runners).
# Please create game structure in which the teams are switched.
# You can have it done after a pregame countdown or have it so that players
# select their own teams after the game starts. The Baba Yaga can only harm Team 2!
# TRIGGER (1) > named babayaga_trigger
# Place this trigger where your Baba Yaga/seeker player is supposed to spawn.
# Ensure that when they spawn, they will trigger this device.
# You can also bind the Baba Yaga Player teleporter to trigger when teleported # to as a fail-safe.
# BLUEPRINT PROP (1) > named babayaga_BPP
# Place this BPP where your baba yaga/seeker player is supposed to spawn.
# >> BluePrint Prop Steps & Settings >>
# 1. In content drawer, create a new Blueprint Prop
# 2. Click Add > Select Sphere or Cylinder
# Make sure Mobility is set to Moveable
# Since this is a static object with no animations, I attached a skeletal mesh to the Sphere/Cylinder
# 3. Select your Sphere or Cylinder, then Add > Skeletal Mesh (you need this to be able to apply animation in cinematic seq)
# 4. Select your Sphere or Cylinder and add your Invisible Material that you created.
# 5. Set your collision presets to : FortCreativeGhost
# This way the prop will not collide with the player it is following.
# 6. Rending Visibility should be Off.
# 7. Save and Compile
# DAMAGE VOLUME (1)
# !!IMPORTANT!! - Attach this damage volume device to your Blueprint Prop in the outliner.
# Be sure to set this device to movable prior to trying to attach.
# Place this Damage Volume where your baba yaga/seeker player is supposed to spawn.
# >> Damage Volume Settings >>
# It is important that you set it to only harm team 2 and class 2 - Your baba yaga will be on team 1, class 1 and you do not want the
# baba yaga to be affected so be sure to set it to only harm the opposing team.
# Be sure to size it to fit your player height, depth and width. Set it to not be visible in game and set it to eliminate.
# CINEMATIC SEQUENCE SETTINGS (1) > named babayaga_run
# >> Cinematic Sequence Settings >>
# 1. Click Track > Add your babayaga_BPP
# 2. Click the plus sign to track once more
# 3. Add the Cylinder or Sphere component (you should see it on the list)
# This item will be static, but with verse will attach to player and move with player.
# 4. Save
# - - - - - - - - - - LET'S BEGIN - - - - - - - - - - - #
#Code will not run without proper references
#This should always appear at the top of the script.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/Simulation/Tags}
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Playspaces }
# This device will allow 1 player that is set to team 1 to act as a baba yaga and eliminate enemy players with one touch!
# Great for Hide and Seek Games or any other games you feel this feature would benefit! Anything you can put your mind to!
# Most Recently used in a project for Prodigy Games, created by Dragon (www.dragonstudio.pro)
babayaga_device := class(creative_device):
@editable
BayaTrigger : trigger_device = trigger_device{}
@editable
dvfollower : creative_prop = creative_prop{}
@editable
Bayaanim : cinematic_sequence_device = cinematic_sequence_device{}
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
BayaTrigger.TriggeredEvent.Subscribe(Triggerit)
Triggerit(InPlayer:?agent):void=
AllPlayers :=GetPlayspace().GetPlayers()
if (Player := AllPlayers[1], Agent := agent[Player], Fort := Agent.GetFortCharacter[]):
Bayaanim.Play(Agent)
Fort.SprintedEvent().Subscribe(OnMoved)
spawn:
UpdatedCharacter(Fort)
UpdatedCharacter(Player : fort_character)<suspends>:void=
loop:
Sleep(0.0)
if (dvfollower.TeleportTo[Player.GetTransform().Translation, Player.GetTransform().Rotation]) {}
OnJumped(MoveData : tuple(fort_character, logic)):void=
if (Agent :=MoveData(0).GetAgent[]):
Bayaanim.Play()
OnMoved(MoveData : tuple(fort_character, logic)):void=
if (Agent :=MoveData(0).GetAgent[]):
if (MoveData(1)?):
Bayaanim.Play()
else:
Bayaanim.Play(Agent)
Sign in to download module
Copy-paste each file above is always free.