#blueprint

1 messages ยท Page 274 of 1

crimson talon
#

I am concerned about relying on it for more advanced movement uses but for this dodge motion it seems to do the trick, you made a good point that it would cancel if it goes into another animation

crimson talon
#

I am having a new problem with root motion dashes, my character comes to a complete stop after reaching the end but it seems like there is a delay before I can input anything, I think its because the player is resetting back to idle?

#

Idk why this is happening but the root motion while working isnt as smooth as what I was previosuly using

cold lion
#

I tried again after being confused by data tables and is there any way I can make this work to switch to the next index and then do a check to make sure it is on said index?

oblique terrace
#

Hey Guys...
So Can You Help me with This Problem..
Actually I Have A Character.
He is moving based on aimoveto Command..

But Instead Of Moving On One Axis Like Forward, Backward, Left , Right..
He is moving Diagonally..

Is there any way to constrain the character only move towards a specific axis and not diagonally

Note : The Character is AI..
And it is moving based on my mouse click events

spark steppe
#

stop crossposting

#

and use math to calculate where it should go...

remote meteor
#

finally decided to make myself a nice little node so i dont have to cache the result from getcomponentbyclass and check every friggin time i need something from an actor sweeney_activate

maiden wadi
#

You can do this on any pure node now. Even all of them that return arrays and stuff that derps mark BPPure

remote meteor
#

Ohhhhg

#

Fina-fakin-ly

#

It always dint make sense to me when you have pure node and multiple outputs. Now we dont have to worry anymore

maiden wadi
#

Haha, for sure. This makes me happier about people marking a lot of randomization or array returns as BlueprintPure. Cause I can just make it not pure without function wrapping it every time. :/

hard sinew
#

why does this not work?

barren tangle
#

enter from menu is something that you need to set to the settings pannel

#

otherwise the value is false by default

#

and you can't do anything to your button on the setting button

hard sinew
#

hhhh

#

okay

#

im also trying to figure out how i could load the mesh of a character. i use boolean "has select x" then the confirm button is a branch with the boolean

#

but it doesnt seem to apply

barren tangle
#

yes i was watching again

#

and i think the issue comes from the fact that you create the widget again

#

remove all widgets...

#

when you try to get the menu, do you find it?

#

or it has been destroy

#

because, you remove all widget from the main menu

#

and after you try to access to the main menu that you have removed

#

so does that return the correct value?

#

put a print string and show the lenght of the list, and the value of the boolean

barren tangle
hard sinew
#

okay

frosty heron
#

Don't use get all widget of class and just grab the reference.

#

Instead destroying things and recreating them, you should make a master widget w_main_menu

#

It can hold all your other widget, settings, options, etc.

#

Just hide and show what you need

barren tangle
#

keep in mind that widget is a View of your game. Changing the widget should not break your game. if changing a widget break all game functionalities then it's not good

dusky cobalt
#

Hello, just kind of want to make sure I'm doing it right.

I have parent and children

  • BP_Building
    • BP_Building_Recruitment [Add Unit To Production]
      - BP_Building_Recruitment_Nature

And so now, in case of BP_Building_Recruitment_Nature, before I let player create unit I need to check if in this building there is still slot.

Do I just make [Add Unit To Production] event, then **Branch Check ** and then Call to Parent [Add Unit To Production] ?

barren tangle
#

so you have diffined the add unit to production into the building recruitment, and then you want into the nature to use the functionalities that the parent has when you provide the unit

dusky cobalt
# barren tangle But your Building Nature. is building that create nature people? why would you w...

So I have parent building used for recruitment of units which holds logic for producing units (queue, progress bar and spawn) and now in case of Nature Building, which can produce units as well **I need extra check before I put the unit in the production. **Basically, this building can ''hold'' 3 wisps at max (before upgrade). If there is already 3 wisps produced and alive by this building, this branch won't let create more wisps for this exact building.

barren tangle
#

functionally i don't find any issue, and blocking point

#

each nature building will be able to have it's 3 wisps and the add unit to production will be able to add them because the mother will only add unit to production

dusky cobalt
#

Thanks!

barren tangle
#

if you want to add a 4th child with other rules... it will work as well.

barren tangle
#

i have a question because

#

if on the UI you want to know before requesting your wisp if you are allowed to make one or not

#

you should convert your branch to pure fonction that give you the answer

#

you should convert your branch to pure fonction interface that give you the answer

#

like that you will be able to reuse that fonction to get the answer somewhere else, if you want to have some kind of visual element

#

so backend wise it's solid... frontend wise, i think there is a way of improvement

#

except if you don't need it ๐Ÿ˜„

dusky cobalt
#

yeah its just a start but will need to implement these things ๐Ÿ˜„

barren tangle
#

yeah, and if you don't think about everything before making it, you will have rework later. but, you are the only know who know what you will need into the future

barren tangle
dusky cobalt
#

more or less I know what you are talking about. I have old project that I'm trying to convert so it's step by step removing 1 thing here and adding 2 things here

barren tangle
trim matrix
#

how to transform .json in working format .uasset via fmodel?

trim matrix
barren tangle
trim matrix
barren tangle
trim matrix
tawny flame
#

Is there support for creating packed level actors from blueprint? I saw a post outlining how to make them in C++ so it's probably possible, but so far I had no luck locating any nodes related to this feature. I'm building an editor utility widget and function library and got a nice pipeline for processing architectural models working. Generating packed level actors so that I can use those instead of Dataprep levels is the last step I'd like to automate.

#

Apparrently there's a "packed level actor builder" that can be used in a couple of lines like this, seems pretty reasonable for it to be exposed for editor blueprints somewhere

#

Since it's a type of a blueprint, would this work?

trim matrix
#

i am not able to find the screen percentage node in the set members in post precess settings

prime stump
livid ibex
#

hi guys, i have question, i have 2 different camera ( fps + tps), and i would like to know if it s possible to link both to a get world location?

prime stump
# trim matrix trying to find this one

If that setting is supposed to be in post process volumes or cameras post process settings and its not there then my guess would be you're watching an old tutorial on a different engine version to the one you're using and that setting doesn't exist there anymore

trim matrix
#

i was trying to create resolution settings

#

like high, med, low

prime stump
trim matrix
#

min and high

prime stump
# trim matrix okay and what's the resolution scale values?

Its just takes an interger between 0 - 100 so if you want to make 'low, mid & high' they can be whatever you want them to be between 0-100, if you click on the little viewport options button you can change your screen percentage in the editor but it tells you what your current resolution is and what its being scaled too which might help you pick values for your low mid and high presets

maiden wadi
trim matrix
prime stump
prime stump
trim matrix
prime stump
# trim matrix okay thankyou

You also need to apply game user settings with the 'Apply Settings' function, target again is GetGameUserSettings

trim matrix
#

oo found it

#

NVM

maiden wadi
#

Yeah. Normally this'll be called when you click apply in like an options ui.

#

You make like an Apply button and check IsDirty to see if it should be enabled. Or check IsDirty when exiting the menu to ask if the user wants to apply their changed settings if it's true, etc etc.

#

Worth also noting that there's a normalized version too, if you wanted to make a 0-1 slider in the UI easier.

hoary forge
#

I want to create a mobile game or pc game in Unreal Engine with realistic maps, and I need help with both Blueprint and C++ development, im environments artist but not for mobile so i want to learn both development and map . If there's any course available for this, please let me know.

maiden wadi
hoary forge
#

sorry its not urgent

prime stump
# hoary forge sorry its not urgent

I'm sure there is some free courses on youtube n stuff covering C++ and blueprint but Udemy is probs one of the best for courses, when you have a new account you usually get a type of new customer offer, when we started out a few years ago we went on udemy and spent about ยฃ300 on about 8 courses, well worth it

#

But Authaer is right, its not gonna be a quick thing you can learn in a short period of time

languid hemlock
#

I have two different meshes, i merged them in blueprint. It looks fine, but they are colliding with each other and fly up to sky(Physics are enabled). I want them both to have collision on, but not to collide with each other

Is there a simpler solution instead of creating a new Collision Channel that I will use only in this backpack?

lofty rapids
#

i mean it makes sense the custom channel, why not ?

#

it should work

#

custom channel default block, ignore on self ?

lofty rapids
#

but it's not my first time programming either

#

there is a lot of videos on youtube about unreal

violet bison
#

how to implement a fan of capsule?

lofty rapids
#

as soon i try to ragdoll i fall through the floor ?

lofty rapids
crude dew
#

Not sure if this is the best place to ask but I will anyway, I am making a small top down game I have an AOE effect which causes AOE damage to the enemies which is all working and fine and stuff, But am wondering how I would go about doing it so when the player casts the spell in an invalid location it spawns them on themself IE.

In Diablo 4 when the player casts Blizzard in a "unreachable" place it spawns on the character location but if they cast at the edge of foliage it kind of half spawns the effect instead, Was wondering how you think this could be achieved please?
Hope this kind of makes sense.

violet bison
#

or sphere traces*

brittle badge
#

here

#

HELLO! so unreal 5 here newbie. I made a lean mechanic for a horror game. the camera rotation is 10 degrees in each direction and after rotating it i made it go out abit by changing the location on the y
but
now that it looks how i want it to and its actually usable in game
the camera can clip trough walls when leaning
i wanted to know if anyone knows how i can stop that while keeping my current settings
heres the code

#

Please help

merry mirage
# brittle badge

You have some kind of location where the camera is, you can do a sphere trace from that and see if there's a wall in the position it wants to lean in, if there is a wall, either move the player or don't lean them further, should be simple enough!

#

It has its own issues but if you just want something that works most of the time then it should do the trick

brittle badge
crude dew
#

To try to make it easier to explain what I was saying is something like this as you can see when the Blizzard is casted on top of terrain it kind of half casts it (Unless the remainder is under the foliaged area??) How would this be achieved plz ? ๐Ÿ™‚

merry mirage
crude dew
#

But then how are you they doing it so it casts "under" the foliage?

#

Like some kind of "layer" system maybe?

merry mirage
#

That's beyond me atm but a quick glance I seemingly see ice under the leaves as well

brittle badge
crude dew
#

Ah so maybe the environment is rendered on a seperate layer and placed on top of the world and the player casts onto the world and the foliage just "hides" the effect as it's essentially on top of it, Sounds feasable.

merry mirage
#

Can you cast AoEs on stairs?

crude dew
#

Yes

#

well the niagara system i am using is affected by stairs.

#

You can see them hitting the stairs and falling behind them

crude dew
wild pumice
#

Hi all, I am currently trying to make a character switch system like this. I currently possess a Pawn that represents the other character ( It has its own camera attached). But the view just Snaps to the possessed pawn. Anyone know how to tackle making the switch like the one in the video where it slowly pans to the character?

crude dew
#

Theres a Camera Blend node which can allow you to switch ot a different camera with a time frame in a smooth transition, (The full node name escapes me) I,ll find it 1 min ๐Ÿ™‚

wild pumice
crude dew
#

Thats the badger! ๐Ÿ™‚, Sometimes so hard to remember all the node names XD

remote wasp
#

Hi, I'm trying to set up a projectile attack
What's the best way to detect if the projectile has hit its target? My naive approach would be to do a "OnComponentOverlap", cast the component overlapped to CapsuleCollision and cast the owner to PlayerCharacter
However, this means that the Projectile BP has a dependency to the PlayerCharacter and loads all of its assets, when it really shouldn't

What's a better way to approach this?

wild pumice
# merry mirage

It worked Thanks. One issue though, if I connect the possess node, the blending is skipped and it just snaps to the new pawn. I'm guessing there is a way to posses only after the Blend is complete?

#

sorry for the ugly camera screenshot.

pulsar axle
#

So, you know how PerlinNoise creates more natural infinitely generated patterns?

I need to create something like that from scratch.

Similar to a Minecraft map from a top down POV.

In a kinda grid pattern, like an array of random numbers in natural looking shapes like in the minecraft image.

The simplifed version I drew on the grid, 1 number represents one area or biome, I don't want there to be any bleeding into the biomes I just want whole numbers.

Anyone know how to achive something like this with just blueprints?

merry mirage
#

Hacky fix, but it works as a stepping stone until you have some better solution

past compass
wild pumice
#

it works with the delay.

#

But it feels like I'm asking for trouble later

merry mirage
#

Maybe, but if it works it works

#

Better to make hacky progress than no progress. We can always refactor it later

wild pumice
#

Like for example if I press inputs before the other pawn is possessed, it registers on the first character.

merry mirage
#

Set a timer

#

That way you can invalidate it whenever you need to

wild pumice
#

Interesting, yeah. A timer might work. I think I also have to implement functionality that when the switch character button is pressed all inputs are stopped until the new pawn is possed.

#

As far as the camera goes, with the timer or delay, I believe it should work.

merry mirage
#

wish you the best of luck. If you need more quick spitballing my dms are open

wild pumice
#

Thanks! appreciate the help.

marble badger
#

I found a huge optimization problem due to "Pure" functions. In the first image, the connection of pure functions: "Get World Location, Test Function and Find Look at Rotation" were executed together 6 times in a row because they were connected to 6 "Set World Rotation" nodes. Testing with a print string in the second image, I was able to prove this.

In the third image, I solved the problem by storing the final result of the connection of pure functions in a variable.

The problem is that I programmed my entire project in the first inefficient way, now I have a snowball to optimize, how am I going to do it now to solve this in a massive way, more than 1000 nodes and dozens of functions I created without realizing that the pure function is executed for each node that was connected.

Help!!

spark steppe
#

in 5.5 you can rightclick them and chose "show exec pins" to turn them into normal function calls

#

in older versions you would have to make your own inpure wrapper (or use the cache variable approach like you did)

marble badger
spark steppe
#

so you still have to update them all manually

marble badger
#

It seems to be faster to select these nodes and convert to an impure function

spark steppe
#

no?!

#

it's pretty much the same amount of work

marble badger
#

Looks like I have a lot of work to do ๐Ÿ˜ฆ I have some tick events that might be lighter if I do this.

spark steppe
#

profile and then optimize...

marble tusk
livid temple
pulsar axle
livid temple
pulsar axle
#

I'll give it a shot if this fails, I've been writing my own perlin noise generator using ChatGPT and it's actually going quite well

livid temple
#

Is there a way to create drag and drop functionality without overriding the widget function?
Basically I want to create functionality exactly like in this gif, the item is also dragged around without pressing the button and is dropped on click

surreal peak
livid temple
surreal peak
#

You could have a look at what this all is even doing. There is probably a way to code your own stuff.

#

The video looks like you could even cheat this a bit, by having a Widget as a Container for your Cursor with a custom option to set any kind of image to it.

#

And when you start the SplitItemStack you use the Item#s Icon for that instead of the cursor image.

#

And then you just save "somewhere" that you are currently splitting. And once you click on the Slot Widget in your Inventory you can check that "somewhere" and do the logic of actually moving the item and refreshing the inventory UI:

#

Something like that at least, if you want to mimic the gif.

#

Idk if you have C++ access/knowledge, but you can set the Cursor to be a Widget during runtime and keep a reference to that Widget. Then you can change the Widget to whatever yo uwant, actively swapping out the image used for the cursor.
We are doing that in Evershire. Some special stuff in the Engine might still fall back to these Enum driven cursor (link a hyperlink useing the "hand" cursor), but almost everything else would work with the default one.

#

And that Widget can then of course also do your "Split" logic where the cursor magically becomes the icon of the item.

livid temple
#

Sounds interesting, I will look into this, thank you so much

surreal peak
#

I already explained the custom cursor widget stuff to someone once

#

Not exactly your problem, but maybe it helps you getting started and helps me not having to repeat that :D

slate wyvern
#

So hello, I am trying to make a digital twin of a building in Unreal Engine 5.1.1.. I have added 2 room floors from Datasmith Plugin (Revit models) and I want to make a Button in my UI that will make one floor appear and the other to disappear.
Button 1 - make floor 1 visible and floor 2 invisible
Butoon 2 - make floor 2 visible and floor 1 invisible
(or hidden)
Its kinda frustrating because I cant find any good tip or tutorial for that. Any ideas how can I make it?
Potentially I want to implement this in 3 floors with 3 buttons.
Thanks in regards, this is for my thesis.
I have tried a lot of things and with chatgpt 4, now I am searching the possibility of using Dispatchers.
I would love any tip, resourse or idea thanks in advance.
Or any plugins

glad solstice
#

hey, iv done everything in this tutorial and by my knowledge i'v done everything, but pressing shift will not sprint. The only thing i didn't do was connect the set nodes to whatever hmd stuff was in the starter content bits at 28:40. i am also not doing the z offset as that's too much for the type of game I'm developing. help is appreciated.
Images attached is what i did.
https://www.youtube.com/watch?v=bXjUE_4-oVo

Support the channel through donations. Crypto accepted!
PayPal: https://paypal.me/reidschannel?locale.x=en_US
Patreon: https://www.patreon.com/reidschannel
Bitcoin: 1JFwWHr4X6uAeoZadukzqKjzFBj3Qjy7Sk
Ethereum: 0x2B2Bc108F1Cc0fF899959dEF3226637787d8C3dE
Dogecoin: DNQ33YnhpWoTBokBNVkZP5ub8KTLkpyjpv

Join our community discord!
Discord: https://dis...

โ–ถ Play video
shy matrix
#

But in general you'd just need to get the actors you want to hide and just set visibility to hidden

#

Or you could use data layers and turn them on/off

slate wyvern
#

Run time

obtuse kiln
#

So...is there a reliable way to avoid the whole 'blueprint thinks interface event isn't part of interface or something, then notices it has an interface with an event with the same name and renames its event to EventName_1 and thus the interface event doesn't work, and also it does all of this silently so you only know it happened AGAIN when you realize the interface isn't working in game' thing other than just not using interfaces?

brittle oxide
#

I'm spawning apples and bananas on trees near each other in a listen server multiplayer. My player has an overlapping component using a collision channel for interactables. If I swap out (scale to zero, or remove component from ID) an instanced static mesh component and place an interactable actor in its place using overlapped sphere component from the player, and I walk away from the blueprint interactable items, I'm having a hard time respawning the PCG Instanced Static mesh in place of the blueprint. How do I relate the ISMComponent with the BP_Interactable to a Client from the Server?

#

Client does not see Servers ISM Component and vice versa as they re not replicable

faint pasture
warm parcel
#

Quick Q, how do I get the maximum int value in BP?

dark drum
warm parcel
#

Nevermind, apparently have to go to C++ to get MAX_INT. Strange

dark drum
warm parcel
#

As in getting the maximum possible value for an int. C++ has MAX_INT, but no equivalent in BP as far as I can tell

dark drum
surreal wagon
#

Like, up and down constantly. It made no sense.

warm parcel
dark drum
warm parcel
#

Yeah, I just like to find solutions that arent messy. I'll use a blueprint library function in c++ that returns MAX_INT. Thanks!

unkempt warren
pulsar axle
glad solstice
marble badger
# faint pasture That's how pure functions be

This makes me rethink how worthwhile it is to use blueprints, in python, C#... an optimization like this is one of the first fundamental concepts of optimization... How could they implement this in the engine in such a way?

#

So you spend years programming, eg: Open file + read content save in variable and suddenly you discover that in the Unreal engine you opened the file and read it several times for each step of the code ๐Ÿ˜ฆ

dawn gazelle
# marble badger This makes me rethink how worthwhile it is to use blueprints, in python, C#... a...

My guess is that it has something to do with caching. When you use impure nodes, the returned values seem like they're cached until used even much later on in the execution. I'm only guessing here based on what I know, but pure nodes execute individually for each execution node they are hooked up to so Pure nodes are probably an optimization in themselves as the returned values don't need to be stored in memory.

marble badger
frosty heron
faint pasture
cold lion
#

Hey I can't seem to make the text editable? same with image I have done this before for a loading screen (Changeable background image, Changeable Text) I reviewed it and did this the same way however the output text is just blank? is there anything completely wrong here?

autumn pulsar
#

Do ints round up or down in UE5?

jovial steeple
autumn pulsar
#

like 1/2 would be .5, does that end up as zero or 1?

#

if returning int

jovial steeple
#

Oh I donโ€™t know, I always make sure to convert it to floats before dividing.

#

Id imagine it doesnโ€™t round, but truncates the return value

autumn pulsar
#

so 0 right

jovial steeple
#

As thatโ€™s what the default int to -> float conversion does

#

0 what?

autumn pulsar
#

if I have a result that's 0.5, it gets truncated to 0

#

I guess I can just test it

jovial steeple
#

Iโ€™d imagine

#

Test and see

maiden wadi
maiden wadi
tawny flame
#

Is there an equivalent of GetAllActorsOfClass and GetAllActorsOfClassWithTag that only evaluates objects attached in the hierarchy of a specified parent actor (as opposed to looking at everything in a current world)? Basically an equivalent of GetComponentsInChildren* or Find* methods in Unity API. Performance is not a concern, I only need those for editor pipeline scripts that run once in a blue moon.

maiden wadi
#

That's exactly what GetAllActorsOfClass does. It doesn't look through everything in the current world.

tawny flame
#

Oh, huh. Is the "World Context Object" that defaults to empty an input where you put the parent to restrict the search?

#

I assumed it was some Unreal scene/level related input and not a parent argument

maiden wadi
tawny flame
#

Yeah, I'm making a pipeline blueprint that does some dataprep and geometry script operations

maiden wadi
#

Ah. You can leave that blank. the library class will auto populate that for you with the calling BP.

tawny flame
#

So I e.g. process 10 assets and my tag search and class search operations need to be constrained by specific parents every time.

maiden wadi
#

The Actor class is what matters. The Get actors calls WITHOUT a Class, are the ones that actually iterate over everything. Like GetAllActorsWithTag, or GetAllActorsWithInterface those are bad.

#

What happens is Unreal dumps Actors into buckets. If you spawn a Character, a Character is a Character, Pawn and Actor. So that one instance gets put in three buckets. One for Actor, one for Pawn, one for Character.

If you spawn two Characters, four Pawns, and eight Actors then you will have fourteen total things. If you GetAllActorsOfClass with Character input, it will go straight to the Character bucket and dump that list into a new array for you by iterating the two characters in that bucket. It will not iterate over the other twelve things in the level.

tawny flame
#

Hmm. So let's say I begin an operation by pressing a button in my custom editor widget, like on the image, and that blueprint goes to GetAllActorsOfClassWithTag node next. The node asks for class "Actor" and tag "my_parent_tag". I did not provide any context about a target object with this setup: the blueprint is not attached to anything in the world, there is no target object argument anywhere etc. So I assume there's no option for the script but to scan every object of class Actor in the entire world to execute this request. Which is what it seems to be doing, it finds every actor anywhere in the hierarchy of a currently active scene with a given tag.

#

This is fine for the first step of the pipeline. Dataprep (which tags parts of imported hierarchies for me) always drops everything it processes into the root of the active scene, so I have a pile of fresh objects in the scene, and GetAllActorsOfClassWithTag immediately discovers the parent actors I need to iterate on. But from that point on, I enter a foreach loop per parent object, and need to constrain all tag searches or class searches to only search contents of a current parent actor. That's what I'm unsure about. I found a way to brute force this by just grabbing all children via GetAttachedActors, entering a foreach loop, using Actor Has Tag check, and filling a collection with results as loop finds matches. But I bet I'm missing something and the same can be accomplished with fewer nodes.

tawny flame
# maiden wadi Ah. You can leave that blank. the library class will auto populate that for you ...

So yeah I guess that's my point of confusion. Most examples I see are traditional player facing blueprints attached to concrete actors in the scene. In that case it makes sense where the implicit context for these operations comes from: the search happens under the root object of that blueprint. But I'm not sure what sort of a context a floating editor window provides, its blueprint sits on a piece of floating editor UI, not an object in the scene. So once I get a concrete parent through other means, I'm interested in passing that parent into downstream searches to constrain them, as the overarching blueprint is of no help.

trim pollen
#

what's the best way to add CPP functionality to a blueprint-only project, without converting it? I'm fine developing the CPP in another project. should i just package it as a plugin or is there an easier way?

crimson talon
#

In third person template how do I stop the Jump from being frame dependant? It is currently using the default logic given

gentle urchin
#

Often very handy tbh

pulsar axle
#

anyone here ever used the fast noise generator before?

I want a way to visualize what it's making, as right now I have no idea-

tulip palm
#

hi, how can i make this if statement have multiple true execs to branch from?

trim matrix
tulip palm
#

im not sure how to do this stuff since i am brand new

#

i will be sure to learn alot soon but am in a rush

trim matrix
#

Just do it everything is clear, use sequence as Datura (Casting is normal) told us if you don't need that node section again

tulip palm
#

just means that i am very clueless currently so im not familiar with some of the language you used

trim matrix
#

So, Click right Mouse button

#

Type Sequence

tulip palm
#

i have a sequence now thank you

trim matrix
#

Plug nodes to your destroy actor, and brach you want to use

#

with sequence

tulip palm
#

i understand thanks alot

trim matrix
maiden wadi
# tawny flame So yeah I guess that's my point of confusion. Most examples I see are traditiona...

I'm not 100% certain but I'd assume it just gets the current world you're editing. There are more specific getters for the editor world too. But realistically I doubt that you could simplify what you're doing much. You have some complex handling going on, so it's going to require complex code. I'm not entirely sure what you're doing with these actors or whatnot. But there are also getters in editor utilities for like getting the currently selected actors, if that helps at all. ๐Ÿคทโ€โ™‚๏ธ

maiden wadi
still abyss
#

Hello, how can i use OVR LipSync with 5.4?

#

Is anyone have a document for this

foggy spire
#

o there are 4 cubes around the player, i want to destroy the cubes in beginplay , as you can see i am destroying the component inside the multicast function which is inside the run on server function but still the cubes are only destroyed in the server, but for the clients they are still there, why is this happening?

dawn gazelle
#

Why not just call for the destruction directly on beginplay without RPCing anything?

#

@foggy spire ^

foggy spire
#

yes but will it work iin some other scenario where i want to puposefully destroy a specific component my player, and also make other players see that the component is no more, example, i am wearing a hat and then i destroy the hat by pressing a key and i want the other players to also see that

#

@dawn gazelle

dawn gazelle
#

Then you wouldn't want to be using RPCs to do it since putting a hat on someone's head is something that is stateful.

#

Eg.
Replicated Bool property "Wear Hat" set with notify.
Client RPCs to server "Wear hat please"
Server receives request, sets "Wear Hat" bool to true.
Wear Hat "OnRep" function triggers -> have it execute logic needed to display the hat.

#

If it's the server that decides the hat should come off, then the server just needs to turn that bool on and off.

foggy spire
#

okay thank you kind person

sharp condor
#

does Epic leaderboard work for unreal engine 5.4?

kind estuary
#

Does collision in Hierarchical Instanced Static Mesh work when going against instances of itself?

#

It doesnt seem that way

#

It seems to only work when going against Static Meshes

#

The only way im being able to do this, is by creating a blueprint, setting up a collision in it, and then spawning one instance that moves with it.

kind estuary
kind estuary
#

im trying to make my hierarchical instanced static mesh collide against the other

glass blade
#

hi, how do i dynamically modify a curve value on the same animation? I have two duplicate blendspaces that i would want to have different values of the curve on them

#

i found a "Modify Curve" node but i have a hard time setting it up

#

would love to see an example

dark drum
# kind estuary this

Instance static meshes aren't really designed for physics. But in terms of collision, you have to make sure it's enabled on the ISM component and the mesh being used has collision on it.

glass blade
#

if t hat works at all

lofty rapids
#

why when i simulate physics for ragdoll, i fall through the floor ?

#

whats up with that ?

lofty rapids
#

the collision on the floor is custom but its set to block on all

#

as soon as i simulate the physics for ragdoll, he just falls through

past hull
#

hello, I am trying to get a reference to my Ennemy NPC blueprint so I can get his velocity for my Animation Blueprint but I am stuck here. I dont know what should I get as an object. The NPC is inherited from Character

dark drum
lofty rapids
lofty rapids
past hull
#

instead of get movement base

storm solar
#

is there a way to move a 2d widget to a different position in screen space over a given period of time? So it looks like its moving instead of teleporting?

final berry
#

If I know two actors are permanently present in a level then it does not matter if I hardcast A to B right? Although I might want to avoid to also cast B to A because of cyclic dependencies?

maiden girder
#

Whats the best way to intigrate different bp?

#

Copy the Functions, variable, and node?

storm solar
#

bpc or make a child bp?

maiden girder
#

bpc?

storm solar
#

blueprint component

maiden girder
#

anyway to change the color of a blueprint in the content drawer

#

nevermind its the color of the folder

#

duh

frosty heron
#

Wdym by integrate different bp

#

Context needed

frosty heron
#

Read the article myth busting by ari

frosty heron
#

One of the important rule to programming is don't repeat your self.

#

I mean OOP is made for that reason

potent orbit
#

I've been looking around the internet and I'm not sure there's any tutorials about this. I was wondering if anyone knows how the Death Stranding team pulled off making rappelling points anywhere in the level as an item and having proper physics against objects to go down like cliff faces and the like. (This was on Decima, not UE.) I'd imagine there'd need to be some wack physics calculations going on. My attempt at breaking down functionality is this:

  1. Player equips climbing anchor and finds a valid point in the world to plant it (with ghost GUI to verify if it's a valid position).
  2. Player plants climbing anchor and grabs rope. Rope spawns coiled on ground.
  3. Player begins to descend. rope spooling through the character's hands and back up to the hook, extending with the physics engine.
  4. Player hull begins to have gravity pushing into the wall to climb down, IK handling collisions with the irregular terrain.
  5. Player can transition easily back to a normal walk once on solid ground, or drop off the rope on command/once at end of rope.

I'm sure this is hard to pull off, because if natural looking rappeling anywhere was so easy, everyone would be doing it. But honestly, this single mechanic was one of the more mind-blowing things in the game for me for how absolutely natural the hook felt and how understated it was. I'm sure there's no way in hell I could add it to my game without driving myself crazy, but I can dream.

autumn pulsar
#

Is there a way to halt a specifc montage? I'm using montages to drive a turning animation, but need to halt them early if the player stops turning

restive ether
#

Good day, tell me how to activate multiplayer in Lyra if I Migrate it from clear project

maiden girder
#

@frosty heronYeah but whats the best way to integrate a plugin into another?

#

I have two system Im trying to join both systems into one

#

one is a Grid based Building system and one is a selection manager

#

Ive tried to use the Grid based buidling system as the base and move the selection manager over. Ive found out that I need to move all the functions and variables over.

#

I got that completed and there is no errors thank God

#

I am the point where i need to really just figure out how the selection manager works and ill have a better Idea of how to Make it work in the building system

fiery anvil
#

anyone know why i cant change the name at the top? bought an asset and im trying to customize the landscape system they have on it

frosty heron
dusky cobalt
frosty heron
#

Not sure what function have to be copied and where.. sounds like misconception.

maiden girder
dusky cobalt
#

You don't really want dependencies like that

maiden girder
#

dependency like what?

#

Im new so theres a lot I dont know lol

#

im just trying to take both systems and build my game on top of them. I want to eliminate the needs of having to waiti on plug in devs to update the plugins too

dusky cobalt
# maiden girder I have two system Im trying to join both systems into one

This sentence. Joining together systems is not a good idea. Each system should do their own job and ofc they should work together but doesn't mean put them into 1 blueprint or something like that. They can communicate but joining them together, moving variable from 1 to other so they can be in ''1 place'' is not good idea.

maiden girder
#

why is that?

dark drum
# maiden girder why is that?

Having two separate systems would make them easier to manage and maintain. It can also be easier if you ever decide to replace and massively refactor one of them.

Sometimes (if possible) I'll create a child of a system that add additional functionality that allows it to integrate into another system. This can allow you create a new child that functions with a different version if you're not sure how you want something to work without it affecting the underlying system.

For example, one of my quest systems doesn't intergrate with any other system by default and instead I build that in a child for things like communicating with interaction systems and dialogue systems.

sacred canyon
maiden girder
#

Ok that makes sense

#

I will keep that in mind while moving forward thanks

dark drum
#

I'm currently looking at how I'm going to go about storing different butterflies the player has bred and I think I might need to use a nested structure. ๐Ÿฅฒ Do anyone have any other suggestions before I jump in?

For context, I have different traits that affect the appearance of a butterfly. Such as wing shape, patterns and colours and I need to keep track of the specific combination for a catalog type of thing. It needs to be easily saveable.

dusky cobalt
#

Data Assets?

dark drum
dusky cobalt
# dark drum In what way?

Actually I didnt understand this 100%. If these breds means just different traits, wouldn't saving these variables be enough? Or In what way you need to store them?

kind estuary
#

I think HISM collision doesnt work properly

#

that is the standard cube of the engine

#

so it has collision

dark drum
# dusky cobalt Actually I didnt understand this 100%. If these breds means just different trait...

You can think of each butterfly as having DNA that changes as the breed. The DNA consists of a list of bools that can be segmented and turned into an int if required.

So based on the elements, there can be around 65k combinations (this could change) so in essence I need to store each unique DNA sequence when it's made but in a way that doesn't require me to loop through 60k+ entries if the player gets to that point. I feel it needs to be some sort of tree data structure.

autumn pulsar
dark drum
kind estuary
dark drum
kind estuary
dark drum
kind estuary
#

There is a hacky way around it, though i didnt want to say it at first, to see if you would bring up something

#

1- Deactivate all collision in the HISMs.
2- Create empty blueprint actor for each instance you want collision on, with just 1 box collision in it.
3- Then create a Event dispatcher to move its corresponding instance (that is stored in a HISM manager).
TADAa it works

dark drum
# kind estuary There is a hacky way around it, though i didnt want to say it at first, to see i...

I'm pretty sure games like the total war have all the battles handled in just code/data and then have a special system that can be used to display what's reflected in the battle data. It gets very expensive having thousands of collisions moving about. (Even more expensive if they have AI) Its often cheaper to just do a quick distance check than a collision check which is sufficient to know if something should be done.

kind estuary
#

though my idea is more like an rts

#

with cubes

dark drum
stoic timber
#

Hey, I try to toggle between windowed and fullscreen mode using a UI dropdown. Somehow it will not work. Any ideas why?
I already debuged after the switch, The dropdown itself works and the different "branches" gots triggered.

Changing the dropdown actually has no effect. Game is always in windowed mode.

I stare at this for already too long, out of ideas.

kind estuary
#

if it is bad for performance, i can always work with tiles

#

and then check who is in a tile instead of using collision

#

and then i could code as needed

dark drum
# kind estuary ๐Ÿซก got it. will test it. its not hard to test it

Storing a units as location and facing vector and doing distances checks might be easier. You could even combine it with a grid system to cut down on calcs. Handling it from a data perspective, you can always have something represent the location (such as a cube) after. Just another option for you if the hacky method doesn't bare fruit. ๐Ÿ™‚

kind estuary
#

that would be fun

#

and for that i think i need physics and collision, though it can be activated specifically

#

for when it happens, right?

#

or i could also code something simple, and when it gets to close, vinterp the other cube away

#

though im not sure if im capable to do that and still look nice

dark drum
dark drum
gaunt monolith
#

Hey everyone! I'm a bit new to Unreal, what's the best way i can teleport an actor around the map to specific points? I need to be able to teleport the actor multiple times and in different spots, and then do the same for other actors too. I tried a few things but can't make it work correctly, can anyone help?

frosty heron
gaunt monolith
kind estuary
frosty heron
#

You can keep the teleported contained into one blueprint though.

#

Create a blueprint actor.

B_MasterTeleporter

#

Add as many target points you like.

#

Drop one to the level, move them around where ever you like.

#

You have a reference to every single target point from the master teleporter

normal cargo
#

I have the following interface that Im using for interacting with items. The EquipItem function is automatically adding the Target argument to the event/function. I cant skip it and it wants the BP Third Person Character Object Reference as an argument and doesnt allow me to pass the interactor argument to it which is type Actor Object Reference. I followed a tutorial to set it up initially that was using casting and Im trying to remove the casting.

The equipItem function is implemented in the third persion BP.

frosty heron
#

@gaunt monolith tldr you used get actor of class for singleton (only one instance in the world)

You get all actor of class when you have every instance of the type in the world.

Very rarely you will use the two. Most of the time you just need to know how to set and get references. Refer to blueprint communication video pinned on this channel.

frosty heron
frosty heron
#

Yeah so you need to provide a bp third person character object

#

You can't call methods belonging to other class in other class

#

It's like animal have method to eat

#

And you are telling car to eat

#

That method doesn't exist in car

normal cargo
#

so what can I do? I do not want to use casting and I also dont want to couple them together. Is there a way to pass the owner or something?

#

or do type conversion

frosty heron
#

Casting is the fundamental part of OOP

#

I can already see where this is going.

#

You are victim of youtuber. Read myth bust article by ari from epic regarding that common misconception about casting.

gaunt monolith
# frosty heron Add as many target points you like.

Do i add the target points in the blueprint itself or in the map? And if i add them in the map how do i reference them in the master teleported? Or should i watch the pinned video you talked about for that?

frosty heron
#

If you don't want the memory foot print produced because you have a hard ref to blueprint asset then you will need to dive into cpp and make a native class

#

Blueprint project don't scale

normal cargo
#

Can I make the EquipItem to be generic or its on class then? And be the middleman between the ThirdPersonBP and the EquipHatBP?

dusky cobalt
frosty heron
gaunt monolith
normal cargo
boreal terrace
#

has anyone ever had the issue where when you step off a ledge that you just teleport to the floor instead of falling with gravity

dusky cobalt
gaunt monolith
frosty heron
#

Each does its thing.

#

Equipment responsible to track active slot, equipped item etc.

frosty heron
#

Something with transform but no collision

gaunt monolith
#

Ok might be a stupid question, i created the masterteleported blueprint, added a couple of scene components, but obviously when i put the blueprint in the editor window, i can't move the two scene components separately, i can only move the entire blueprint with the gizmo, what am i missing?

frosty heron
#

Drop the master teleporter to the world

#

Select it

#

Look at the detail panel

#

Select the scene component then move it

#

You can move the component independently

gaunt monolith
#

Sorry, very new to unreal

frosty heron
#

We all learn something everyday

molten kestrel
#

Not seeing pins on an FStruct's TOptional fields. Is that normal? EBCAK?

#
frosty heron
#

I never seen that, I am on 5.1

#

Op exposed it

#

Not supported out of the box. PR created but probably never accepted.

gaunt monolith
#

@frosty heron @dusky cobalt Thank you both, i made it work!

autumn pulsar
#

Can you only play one montage at a time on an actor?

dark drum
# autumn pulsar Can you only play one montage at a time on an actor?

yes and no. You can only play one montage on a slot at a time. If you have multiple slots you can technically play multiple but you would of course have to handle how you want the different slots to blend together into a single anim otherwise one would just override the other.

autumn pulsar
normal cargo
#

do we objects in UE5? Similar to JS objects? Something like:

rightHand = {
 isEquiped: boolean,
 item: Actor,
}
#

or what is a better way to track different variables with same properties? I dont want to do, rightHandItem, rightHandEquiped, leftHandItem etc

stark patio
#

Has anyone tried to make boids in blueprint? my implementation just results in the boids all just bumping around in a blob at the avoidance distance from each other. I followed this pseudocode (up to the 3 basic rules so it should somewhat work) http://www.kfish.org/boids/pseudocode.html. The difference for me is that im setting the movement velocity in a floating pawn movement and not changing the position as in the pseudocode.

stark patio
reef vapor
#

Hi. I cant get a decrement node from a variable in UE4. the variable is editable and public. anyone knows how to that?

#

do*

dry sleet
#

And it's an Integer?

fallow epoch
#

Are there any free steam core plugins available?

frosty heron
reef vapor
dawn gazelle
reef vapor
somber tide
#

Can anyone explain why the printed value is being affected by the truncate node below? Driving me insane

pastel apex
#

question, i want to change the collider from a capsule to something else in a BP class that derives from character, how can I go about doing that?

somber tide
#

(what I'm actually trying to do is get the remainder but I came across this in the process)

pastel apex
#

lemme guess

#

use pawn if i want to do stuff like that

thin panther
#

Quite simply. The CMC relies on a capsule and a capsule only. If you want other collision types, build from a pawn

pastel apex
#

i see

thin panther
#

rare lack of pun moment

dawn gazelle
pastel apex
somber tide
#

I wanted to subtract the truncated value from the float in order to get the remaining decimal value, is there another way I can do that?

pastel apex
#

did want to ask

#

what is this node supposed to do?

dawn gazelle
pastel apex
#

i noticed that but was unsure what it actually does

dawn gazelle
#

So the CMC's component would be its capsule.

pastel apex
#

i guess just moves the component

pastel apex
dawn gazelle
#

That node lets you adjust what component to use.

pastel apex
#

ok

#

but it doesn't change what it uses for collisions

somber tide
pastel apex
#

since that still needs capsule

dawn gazelle
#

Yeah that's built into the CMC itself.

pastel apex
#

ok

autumn pulsar
#

Does an Actor Component tick use the host's tick, or does it have its own tick?

viral arrow
#

This is weird?
Or am i stupid?

autumn pulsar
viral arrow
#

If the number from the Random INteger is 1 or greater pass it to Add Coins

#

Min is 0 and Max is 1 in this case
I get 1 some times but function is also called when number is 0

viral arrow
autumn pulsar
#

the function might be getting called twice

#

the random integer one

viral arrow
#

You think?
Any work around?

autumn pulsar
#

right click the node and click "show exec pins"

#

then hook it into your logic

#

just before the branch

#

The "Random Integer in Range"

viral arrow
#

@autumn pulsar I just made a function that generates the number seems like that is working.
So more or less the same as you sugested.

Cheers mate think you where right.

I will do some more testing just to be sure tough. ๐Ÿ™‚

dawn gazelle
#

Random nodes just make it very apparent that this is happening since you get a different value on each node.

viral arrow
#

@dawn gazelle I did not know that so thanks for the info.

viral arrow
maiden wadi
unreal island
#

Hi, Im trying to break a geometry collection using the apply damage node but i cant seem to get it working. Does anyone know how to fix this?

crimson talon
#

in the third person template by default I am noticing that I am bouncing off other actors when I jump on them, how do I change this the enemy moves to give space/the player slides off to the side?

maiden wadi
sharp condor
#

hello, can i ask what is the best way to make a timed leaderboard using blueprints?

vestal totem
#

Can someone explain the difference between requesting the server make a multicast vs just enabling the parameter for replication and setting it on the server?

Am I correct in thinking that for state I'd just set a variable like crouching on the server and enable replication so it's automatically sent to all the clients, rather than calling a multicast on the server to send the variable value manually?

Meanwhile, multicast would be more useful for events like playing an animation for opening a chest, etc.

Correct?

I've done a bunch of tutorials and it seems like many people are using a Run on Server event that susequently calls Multicast. But it seems like using replicate basically does the same thing in the end?

dawn gazelle
# vestal totem Can someone explain the difference between requesting the server make a multicas...

Multicast is basically the server telling all clients to do the thing within the multicast if the client has that actor relevant at the time of the multicast. Players who join the game later would not receive that multicast, and would not know that it happened.

A replicated property is something the server will populate down with no further instructions, and the server polls whether the client has been sent the current value or not, and if not, then replicates it. So even if the value is set sometime in the past, when someone joins the game later, they would receive the latest value. If you want something to happen when a client receives a new value, then you set it as a Rep W/ Notify which gives you a generated OnRep function that is called when the new value comes in.

So yes, usually multicasts are good for things like sfx or vfx, possibly animations. These thing can be stately too! Think of it in terms of once-off right-now kind of things.
Stately things where you may want someone to know about the value or action later, then replicating a variable is what you want to use.

vestal totem
#

Semi related,

Is there a proper way to trigger gun firing in a FPS?

Right now I'm calling a Run on Server event that then calls a Multicast. But sometimes thing get a little wonky on clients. For example, the gun may fire a couple times from a click. Or it may get stuck in the on state as if the Off wasn't received. Sometimes it may not even fire the gun initially.

Seems like I should be using Reliable for this particle thing. No?

Also, communication to a server might be slow, so how do I have the gun fire locally for responsiveness, but then let the server play the multicast without causing the local computer to fire twice?

worthy bough
#

The hit actor is the correct reference the interface needs to open "BP_Door"

It returns the hit actor name as "BP_Door"

But for some reason it returns false when checking if the hit actor is = to "BP_Door"?

dawn gazelle
#

You can check the class, but really, you don't need to the check there - rather than having a "door" interface, just use an "interact" interface which can then make it usable with many more things without having to check what it is you're interacting with.

dawn gazelle
#

Now you can build several objects that can respond to that interface call however you like.

faint pasture
vestal totem
vestal totem
#

And what is it? Or at least what might it be called so I can look it up?

worthy bough
surreal peak
#

And yes, using IsLocallyControlled on the Pawn or IsLocalPlayerController on the Controller is the correct way to identify (and thus filter) a local player.

#

You don't even need the GetController -> IsValid part

#

Pawn has an IsLocallyControlled function already to bridge that.

#

Ah, I just saw, the "passing self to PawnReference", unless you, somewhere else, pass something else, is absolutely redundant

#

There is 0 need to thunnel self through RPCs like that

#

You can just remove the whole input on your RPCs and call IsLocallyControlled directly.
That is, after all, falling back to "self".

#

@worthy bough

#

@vestal totem ^ just for awareness

vestal totem
worthy bough
#

@surreal peak so more like this?

surreal peak
#

I would also suggest to clean that up a bit so you only have one Timeline :P

#

Move the Timeline with hte SetRelativeLocation into its own Event (non-RPC).

#

And call that in the two places that you are currently having the Timeline.

#

Wherever this comes from -> FlipFlop -> Multicast -> YourNewEvent

Multicast -> IsLocallyControlled -- No -> YourNewEvent

YourNewEvent -> FirstPersonAnimActive? -> Timeline -> SetRelativeLocation

lethal pollen
#

Hi!

#

Loading Message Actor is an Object reference to an Actor. I'm doing this:

#

Do I need to do something else to invalidate the Loading Message Actor variable? Setting the variable to null?

#

Thanks!

worthy bough
surreal peak
#

Destroyed UObjects (or AActors here) still remain in memory until the GarbageCollector picks them up.

#

That's why one uses IsValid instead of just checking against nullptr.

#

But setting them to nullptr after you know the variable will be cleared by the GC eventually is a good habit to clean up after yourself :P

lethal pollen
violet bison
#

how to store data for clients that persist throughout level changes and can be accessed by the controller?
(the data is picked by clients in widget)
game instance isn't replicated, and player state is new after level change.

frosty heron
violet bison
#

really?

frosty heron
#

Example, player character-> is locally controlled-> get Gi -> get fashionStruct -> server rpc, set Fashion

#

Ofc. Everyone can access their own Game instance.

#

Why does it matter if the object is replicated or not.

#

What matter is when you want to pass the info to thr server you have to use it using a replicated actor channel ( for client, usually the actor they controlled )

#

That's what I'm doing right now because I am using listen server.

#

Gonna change it to cloud later on so not gonna store anything on the client anymore.

lost hemlock
#

Why does this one not work?

#

nothing comes up after I start up this function ( widget should show up )

maiden wadi
lost hemlock
maiden wadi
#

The widget class is correct?

lost hemlock
lost hemlock
#

I think I know, it's to do with some nested widget, thats where the radial menu is probably supposed to be in

dark drum
# lost hemlock Why does this one not work?

I'm not sure about you're issue but it might be worth looking at commonUI and activatable widgets. You can just push to a stack and if the widget is already in the stack but not visible, it reuses the same widget. If there isn't one it'll automatically create and add it to the stack.

maiden wadi
#

CommonUI โค๏ธ

#

But unsure how much it'll help here if the widget isn't showing at all.

proven wasp
#

HI In god of war Kratos fights a titan and then a button appeared on the titan so kratos can perform specific animation any on can help with blueprints and steps pls

sacred canyon
maiden wadi
#

I'd be shocked if there are no bad tutorials on doing an execute cinematic system somewhere though.

dark drum
dark drum
dark drum
maiden wadi
#

I haven't played God of War. But I get Jedi: Fallen Order in mind. Fight til it's low health and then perform an execute sort of thing. Which generally means some form of health system, some form of ability system, understanding cinematics, and a basic understanding of how the camera manager blends targets.

dark drum
maiden wadi
#

It'll never end. ๐Ÿ˜„ I've tried to stay as generalist as I can, but it becomes glaringly apparent why there are so many specialists in game dev.

dark drum
red briar
#

does anyone know if theres a way to duplicate a data asset at runtime? ive used this but its editor only (crashes ingame), and i only need it duplicated temporarily so it doesnt matter if its gone after a game restart

maiden wadi
#

By duplicate, you mean with all of it's data and everything?

dark drum
red briar
red briar
maiden wadi
#

You can just create a new one then.

dark drum
# red briar sad :(

Yea, you'd need to use DuplicateObject which is only available in C++. As Authaer said, if you don't need the data, just get the class and construct object from the class.

maiden wadi
#

Do be aware that runtime creation of data assets is a bit weird behavior though.

#

Useful for some things, but depends on the case. In a lot of cases, it's not necessary as you should be usually using some sort of state object instead of a data asset that is normally used for static game data.

dark drum
#

Fun fact though, constructing a scene renderer using the standard construct object node crashes the engine every time haha. (There's a specific node for creating them at runtime)

maiden wadi
#

Yeah, there some other stuff like constructing UWidgets instead of a UserWidget wrapping them and then passing it to something like ComboBox's widget override function. Wait a few seconds, and kaboom.

dark drum
red briar
maiden wadi
#

Every object is constructed into an outer. DataAssets are normally constructed into a package. But given you're doing them at runtime, you'd need to give like GameInstance, or something else persistant.

dark drum
pale narwhal
#

Does anyone have experience with Procedural animation? (Weapon Sway) specifically.

red briar
dark drum
red briar
#

i see

#

alright, thanks for all the help :)

solemn helm
#

Dono, if I should post this here, its technically a blueprint issue. What would cause my blueprint to rotate its thumbnail image like this?

#

Cause when you look at him in the viewport in the blueprint

#

it looks fine

#

and it runs fine in game

#

my thumbnail is sideways though lul. Its offputting at most, but if anyone knows how to fix that. Id love to know.

grave relic
#

What are some examples of when itโ€™s good to use data assets instead of data tables?

I donโ€™t really have a good grasp on data assets yet. They seam useful but i just donโ€™t get them.

maiden wadi
#

A DataTable, DataAsset, StaticMesh, Texture, etc are all identical in the sense that they are simply data containers. The only thing that really separates a datatable and a data asset is the fact that datatables are specifically designed to hold multiple entries of data defined by a struct. A data asset can house any sort of data and also can house functions.

grave relic
crystal otter
grave relic
stark patio
#

Has anyone tried to make boids in blueprint? my implementation just results in the boids all just bumping around in a blob at the avoidance distance from each other. I followed this pseudocode (up to the 3 basic rules so it should somewhat work) http://www.kfish.org/boids/pseudocode.html. The difference for me is that im setting the movement velocity in a floating pawn movement and not changing the position as in the pseudocode.

gentle urchin
#

unrelated to your problem, but surely you can just abs the length, instead of the vector. 1 vs 3 operations ? ^^

#

actually length is prob already abs

deft copper
#

I have a data only blueprint based off a C++ class with 2 BlueprintCallable UFUNCTIONS, if in another blueprint I make a variable that is an object reference to the data only blueprint, if I hove over a get to this variable it shows as None, is there something specialy about data only blueprints being used as a variable object reference?

#

I can see it has my 2 call functions listed if I run a wire off it

gentle urchin
#

Even if its data only (that subclass), it needs to be instantiated

#

Unless its a data asset, instantiated in editor

deft copper
#

Ok I guess it may be better to turn this into a data asset, but can data assets C++ support BlueprintCallable UFUNCTIONS?

pulsar axle
#

huh? weird, from what I've been able to tell, you can't use == to check if something is in an array of name variables.

Because if both fail the true or false check, then it simply prints what the random choice of the array was, ofc it's always one of the two options as you would expect

#

any other way to check this?

gentle urchin
#

Think i got it on my quest DA

deft copper
gentle urchin
#

Its basically singletons made by the engine iirc

marble badger
#

How do I get all blueprints for a class while playing in standalone mode or in the packaged game?

mild jacinth
#

UWidget ComboBox string default options and selected default option get reset each time I restart project. is this a common issue?

pulsar axle
#

basic question, but is there a blueprint that lets you pick from a range?
for example
5 is the min, 20 is the max
then it picks a random number in that range?

pulsar axle
#

beautiful, couldn't find it for the life of me

deft copper
# gentle urchin Its basically singletons made by the engine iirc

Sadly using a Data Asset based of a C++ class and creating an object reference variable inside some blueprint still comes up with None, seems the Data Asset is expected to be instanced as it still resolves as None. Can't drag and drop into leve as it is not based on Actor.

gentle urchin
deft copper
#

I think I resolved it. Been a while and forgot I could set it in the Class Defaults for the blueprint.

dusky cobalt
#

Would checking if actors are valid in the array work as checking if they got destroyed or not?

Like let's say I create 3 actors. Before I create 4th one. I want to check if Current Wisps are still there/alive (means didn't get destroyed). If the wisp will be destroyed, and then I check if there are still 3 wisps, will it actually tell me there are 2 valid entries and 3rd one was destroyed? OR would I have to manually remove that wisp from this array?

languid hemlock
lunar sleet
#

Thatโ€™s prly quickest and safest rly

dusky cobalt
#

True, I was trying to find other way but yeah it makes sense to do it this way ๐Ÿ˜„

dusky hemlock
pulsar axle
pulsar axle
dusky hemlock
#

Yes that's what I mean.
Now I don't know how it works under the hood but I believe the pure functions are better optimised since they can't/shouldn't change the state of the object just like const methods in c++

#

honestly, I don't know why not all pure functions are also const, but who am I to decide what is good or bad

lusty birch
hoary sorrel
#

hi, i'm a beginner and i try to spawn an enemy at a precise spawn point when my player overlap a trigger box. The problem is : my enemy spawn but at the origin of the world but not on my spawn point. i have the error "accessed none trying to read property spawnPoint" . Any guidance why it's not working ? thank you

worldly sparrow
#

hi all, am just starting out in bp, have some experience in pcg. the code has a node "get actor of class" so i cna put one class of actor in its purple box. but what if i want actors of three classes? so one being pcg-volume one being foliageinstancestaticmesh and one being staticmesh?

lunar sleet
#

Assuming it has a plural one, I canโ€™t rmbr

lunar sleet
# hoary sorrel hi, i'm a beginner and i try to spawn an enemy at a precise spawn point when my ...

Hi.

  1. Do not use Level blueprint. It is extremely obsoleted and the tutorials referencing it are usually either outdated or made by people that are clueless.
    You cannot communicate with the level bp from another bp which is a major drawback.
  2. If you get Accessed None it means whatever ref you are feeding it is currently null. So hit the magnifying glass, find out what itโ€™s referencing and set the ref properly. Watch the second pin video in full to understand how to communicate with bps and set refs properly.
  3. itโ€™s defaulting to 0,0,0 because the ref is invalid so the transform defaults to that value.
worldly sparrow
lunar sleet
#

Iirc anyways

iron idol
#

If I have an array of an actor class, and in this class there is an integer variable. how would I go about sorting them by the value?

dark drum
# pulsar axle Pure and executing? are you talking about ones with the white power triangle an...

For further context, normal functions (with the exec pins) cache the output var results (if it has any) while pure functions don't.

Because pure functions don't cache the result, it has to calculate it again if it gets called again.

This can be desirable more than you think but you just need to be aware of the logic being called inside.

In 5.5 I believe you can add the exec pin to a pure function (in the right click menu) so it does cache the result. This saves you having to create a local var to store it in if you don't want it to rerun.

craggy flicker
#

So I have this setup. Imagine it's like a shopping cart list, I'm trying to implement removing an item from the list if the player decides they dont want it anymore. The issue is that I create the widget dynamically and bind a removal event instead of implementing it on the widget, so I can re-use the widget with different logic for different items.

I'm trying to get the parent of B Remove in the function Handle on Item Remove. But it's from a binded event and I can't just input itself, right

#

itself as in, the B Remove parent

hoary sorrel
grim meadow
#

Hey I am switching my ai character to use the pawn and floating movement comp (performance reasons). Can anyone tell me or have a good tutorial they know of to add gravity and orient to movement like a character class would?

crimson talon
#

Does anyone know how to turn off the bouncing when you jump on another actor that is in the default third person template? I thought it would be Jump Off ZFactor but changing that to 0 has not solved this problem

marble badger
#

How to stop switch on String from adding "None" to an empty value?

worldly sparrow
worldly sparrow
# pulsar osprey yes

ok, so that is going to give higher performance hit, than get all actors and using a class?

pulsar osprey
#

i can't remember entirely, but I think that get all actors of class is actually pretty fast now but get by tag is still pretty "slow". might be flipped.
if you need to use it though you need to use it

#

just don't place it in a tick function and you'll be fine

tawny flame
#

Why can't Maps be used as local variables in Blueprints when Arrays support this? Map nodes don't have a "promote to local variable" option and map type can't be selected in the local variable panel (right click only toggles between solo variable and array).

unique harness
crimson talon
#

does anyone know how to stop the player from bouncing off actors when you jump on them/slide down instead? This seems like something that should be more general but I can hardly find anything on this

crimson talon
unique harness
marble badger
# unique harness you don't. What are you trying to do?

Basically I didn't want to have to use "string is empty?", I wanted to put the empty string output in the switch as I usually do in C#, python... It's nothing serious. Basically detecting the string output of a key in the json of the player's save in the steam cloud.

crimson talon
tawny flame
# unique harness They should be able to

Can I initialize an empty map separately? I don't see a node for this. There is a "Make Map" but it implies you have some entries to add immediately, which I don't - I just want an empty collection, exactly like when setting up a local array variable.

unique harness
#

typically it would be an enum

unique harness
unique harness
crimson talon
unique harness
crimson talon
#

Simulate physics is unticked but Im still effected by like gravity, Im asusming no?

unique harness
#

I'm booting editor, one sec

crimson talon
#

all g

tawny flame
# unique harness You should be able to do `Make Map` and remove the default entry

Ah, I see what I did wrong. The Contains node I tried to use for "Promote to local variable" didn't have a key input connected so the option was unavailable as map key type couldn't be determined.
However, there's one thing I'm missing. Where do I select a value type? It defaulted to Integer and local variable editor doesn't show a second dropdown for the value type.
(I'm assuming Maps are the same concept as a generic dictionary in most languages, as supporting any key type implies value type is generic as well)

tawny flame
#

You should be able to do Make Map and remove the default entry
That yields a map of Wildcards to Wildcards, without letting me customize key/value type, unfortunately

crimson talon
#

changed jump off zfactor to 0.5 which is what it is set to by default in third person template and by default it's kinda fucked/bounces lmao

tawny flame
#

A couple local variables that are Maps with specific types. The first one I'll need is Integer key type and StaticMesh value type (doing some mesh replacement lookups). Specifically locally initialized, I do not want a user-facing serialized field visible outside of blueprint (which so far is the only way I've seen where Blueprint editor gives you dropdowns for key and value types).

unique harness
crimson talon
#

oof

#

I thought the issue was that I set in walking to use flat base for floor checks but not even that is helping

tawny flame
#

Basically here's what I'm missing, a UI element letting me customize the second type of a local map.

crimson talon
#

although when I dont have a flat base it behaves like what I want with nonactor cones, where my character slides off

#

I am bewildered as to why this bounce is even here lmao

tawny flame
crimson talon
#

Does anyone have any suggestions for what I should do about removing that actor jump on actor bounce? I am so confused as to why this is a seemingly niche topic lol

lunar sleet
dense mica
#

It will work

#

It supports anything you can place in a BP graph regardless of what it is

crimson talon
#

Am I misunderstanding how Jump off Jump ZFactor is supposed to work? Everywhere I look claims that setting this to 0 solves my problem of bouncing off enemies/other actors but it doesnt seem to make any difference

maiden wadi
# grave relic Or like for example I use structs that are populated by data from DTs. Is a data...

Not exactly. I just meant to say that datatables and data assets are basically identical in the sense that they store static data for a project.

One clear example might be something like inventory items. So you need a lot of associated data for inventory items. Name, Description, icons, 3D models, maybe even associated actor classes, bunch of tags or enums, or booleans, etc etc.

You can make a struct named FInventoryItemDefinition, and put this data in it and put that in a datatable.

You can also make a UInventoryItemDefinition class that inherits from DataAsset or PrimaryDataAsset, and put all of the data in there.

(You create data assets as definitions of stuff. You don't use them for runtime state, you also need a second struct or UObject that houses anything that is changed at runtime like current stack size or item durability, etc)

At which point either the rowname you give the struct in the datatable, or this data asset are how you pass around and relate this item's data. They both serve the same purpose in the end in an identical manner.

The primary differences are that you'll pass around the data directly with a pointer to the object it's on using a data asset, and you'll pass around an fname or a datatablerowhandle to access the data from lookup for a datatable.

With a data asset I can also put functions on it for accessing complex data rather than using a second object or a library. An example of this might be like in our current project we have some naming of units that is determined by some factors in their data. But we want to specify their primary name, and their additions for localization and then use a localized format to construct the name with prefixes and suffixes. And rather than doing this in the name widget, or making a library function, I put this directly on the data asset where the data already lives because I can do all of this with the data at hand there based on how designers input the data.

fresh echo
#

I am having an issue where my mesh from a blueprint class is not showing up in the level.

I have a c++ UMeshComponent that I call CreateDefaultSubobject on, but sometimes as a UStaticMeshComponent, sometimes as a USkeletalMeshComponent (this is in a base item class constructor, the subclass type determining static or skele).

When I create a blueprint class as a child of both c++ subclass types (one static, one skele), it works as I'd expect in the blueprint class - in the component hierarchy, each one shows the desired type. In the details panel I can assign the proper mesh type, and both static and skele versions show up properly in the viewport.

However, when I spawn an item (or manually drag the bp class into the level), the mesh does not appear.

Is this a known limitation (using UMeshComponent instead of specifically static or skele comp), or should it work in theory since it works in the blueprint class viewport / side panels?

(Also wasn't sure if this was better as a blueprint channel question or a c++ channel question)

normal cargo
#

are there any good courses, tutorials, projects on blueprints (paid or free)?

deft copper
autumn pulsar
#

When interacting with the CMC and doing things like ledge grabbing, what's usually the intended entry point? Just doing logic in the event graph and getting the movement mode?

normal cargo
deft copper
frosty heron
normal cargo
#

Are there any websites for nodes/blueprints similar to MDN for JavaScript?

frosty heron
#

Nodes placing / blueprint is visual scripting

autumn pulsar
deft copper
#

Yea, Epic's official docs.

autumn pulsar
#

like you could directly access stuff, which is simple, but then becomes a nightmare later

#

so there's lots of way to abstract that

autumn pulsar
# frosty heron Input -> check if can ledge

well I mean I'd need to either lock into an animation or so, would I just do logic to set movement mode to flying then do whatever it is I'm going to do? Or is there a function or so where I'm intended to override and interject

normal cargo
# frosty heron Most youtube tutorials are downright terrible. But someone has to start from som...

thats what I am noticing, most of them are just terrible and are not using proper design systems or architectures. Im a senior software engineer already and I see a lot of mistakes in them but I just dont know how to fix them or do them better. None of the videos I have watched are satisfactory or complete enough. So when I watch some other youtuber for the questions I have or the missing knowledge, they are doing it completely differently.

frosty heron
#

Normally done with traces

autumn pulsar
#

where I'm stalling out is getting the movement mode in the right place

frosty heron
#

I can't imagine a senior software dev using youtube to learn

autumn pulsar
#

Blueprints made a lot more sense after a year of C++ for me kek

autumn pulsar
#

Especially the Epic talks

frosty heron
#

A software dev would know youtubers are people that are still learning too and often just do a click bait.

normal cargo
frosty heron
#

Which is OOP

#

You don't really need to "learn" bp if you know JS

#

Everything should feel right at home.

normal cargo
# frosty heron You don't really need to "learn" bp if you know JS

Ya thats why I asked if there is any website similar to MDN where I can read into the nodes and how they are implemented and what they do in the BP world. Like what tagets are to events and stuff. Just understanding which node to use and the examples of the implementation.

autumn pulsar
#

like actor components, interfaces, etc

autumn pulsar
#

there's also the Epic Wiki

autumn pulsar
#

yeah

#

they should have documentation on most of not all the nodes

#

there's also the tooltips

#

search is pretty good as well

frosty heron
#

Reading source code is the only documentation

#

The generated one is pretty bad

normal cargo
autumn pulsar
#

google lol

#

chances are, some person ran into the same issue and posted it to reddit

#

You still have to do some of your own work

maiden wadi
#

There used to be forums, but I don't know where they were moved. And there's a pretty big reddit following.

autumn pulsar
#

like "why isn't my damage system working" isn't going to give you many results in a google

frosty heron
#

Everyone password and email got leaked sweeney_activate

#

Ngl kinda miss forum days

autumn pulsar
normal cargo
#

Doesnt seem like there is a big community in game dev world similar to the web. Other thing I noticed is how things are paid. NPM is free and almost everything is open source in the web industry whereas we gotta pay for a lot of things for making a game.

autumn pulsar
#

There's a lot of free stuff for games

frosty heron
autumn pulsar
#

I mean, Unreal itself is free* and Godot is free

frosty heron
#

But normally you can find most of the things from google

#

And for most common used nodes, watch Matthew wadstein youtube channel.

normal cargo
warped juniper
#

I have a simplequestion regarding efficiency for accessing classes...
I have a scene component class that I need to get as an array in a function. It holds an enum variable.
If I want to get all those components in one go, based on that enum, is there a quick way to do that without a for each loop on the same parent class?
Or should I make several children, each holding a different value on that enum?

normal cargo
#

but a lot of assets seems to be paid and pricy for hobbiest. The Fab marketplace also doesnt have any options to just download things and try them out before purchasing.

But Im going out of topic here now.

maiden wadi
# normal cargo Doesnt seem like there is a big community in game dev world similar to the web. ...

There is a pretty big "community", it's just very fragmented. First by engines. No one in here really cares what is happening in Frostbite or Unity. And then by companies. General help and systems are one thing but there's a lot of stuff that is NDA that isn't easy to discuss generically. And then a lot of people in gamedev are part of bigger corps which have their own internal nets that they chat and get help in. So the public community can feel a bit small.

autumn pulsar
#

You could probably watch a tuber tutorial to get the gist of what to do then write a more robust implementation

warped juniper
#

For context, this is the current method I'm using.

#

It works, yes, but I feel it's a bit convoluted for what it is

autumn pulsar
#

and where is this running?

violet bison
autumn pulsar
#

Depending on the situation, might be easier to just have the actors add themselves to a list when they initialize

maiden wadi
warped juniper
frosty heron
warped juniper
# maiden wadi Why is this convoluted?

The previous method I used was made with tags, but was inefficient because all scene components passed no data other than position to the player. This way I can make more complex interactions, but getting the right area seems harder

frosty heron
#

Stop using multicast for anything stateful

#

Why are you passing data to everyone as well

autumn pulsar
#

How many npcs do you plan to have at once?

violet bison
#

setting the variable in controller from game instance
there's an is locally controlled check as well

frosty heron
#

First write them down on paper first. The design is actually simple.

autumn pulsar
#

NPC thing

frosty heron
#

Player logged in
As client, get the player GI / save game, send the data to server.

As server, Server replicate the data to everyone.

#

Try to replicate a variable first. Just a float value or something simple.

#

@violet bison try syncing players name.

#

That will be easy start

violet bison
#

okay

frosty heron
#

You will have name in the game instance, that's fine. But you will also need name in replicated actor. Use player state.

#

The name in the player state will be replicated.

#

Btw I just realised that you will need to test with 2 machines at least

violet bison
#

is 2 windows not ok?

#

number of players*

frosty heron
#

Have you not implement host and join.

violet bison
#

I have a name changing text box in the menu before joining a lobby

violet bison
frosty heron
#

Enter name -> store in GI . Host

Enter name -> store in GI -< join

violet bison
#

the name changing box does save changes to game instance varable
I guess it worked?

frosty heron
#

Irrelevant but why r u using triggered

#

That runs every frame

#

Just use started

#

To test

Input -> get all player states, for each player state, print the name.

primal hare
#

I use "set world location" to set position of a cube inside a BP.
It works when I play.
How can I KEEP the location change after I quit the game?

lunar sleet
#

Look into savegame object

cold sable
#

Anyone have the issue that overlap event isn't working on an actor that's spawned in realtime but it works when placed in the editor? it's driving me crazy

lunar sleet
maiden wadi
#

That's usually the setting that stops overlaps from triggering during level streaming.

cold sable
#

it was cause i didnt have the component overlapping parented to the root that had physics enabled >.< thanks yall

dark drum
gusty crater
#

Have tried it on my pawn and player controller, and the correct ones are set in gamemode

pulsar axle
supple kiln
#

In an Unreal Engine 5.5 GAS project, enabling physics with a Physical Animation Component causes the engine to crash or just freeze.

The crash occurs when the "RagdollStartEvent" is triggered, and the function "Add Tick Prerequisite" has been executed during game startup.

Error details:
Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 783]
Array index out of bounds: 7 into an array of size 0

junior girder
#

hello, i am newbie here
i am trying to make stable camera when ship is rotating, but as i've got SpringArm can be attached only relatively
searching for solutions i've got i need separated Camera Actor. I've created it and i don't know how to attach this custom camera to my pawn.
Ping on reply, please

maiden wadi
lost hemlock
#

How the fuck is this possible that this widget gets created ( old weapon wheel widget that has been already removed )

#

These are the actual things that I want. Here inside of the Inputs_2

#

This thing never gets called

#

And thats also the controller that im using right now

frosty heron
#

Turns out it's not error free afterall

maiden wadi
#

๐Ÿ˜‚

#

You should probably check in the class being used.

frosty heron
#

Input is only enabled on controller and possessed pawn by default

ruby ivy
#

hi i got problem with this code Run On Server not working on client it's an actor i have another actors with similar code but only its not working (componentReplicates Replicate movement etc. is open)

maiden wadi
ruby ivy
maiden wadi
#

Some, but I'm curious what this code's intention is? What does it do?

supple kiln
# maiden wadi Can you download symbols for your editor so that your callstack has more useful ...

Does this help? I've downloaded the symbols.

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 783]
Array index out of bounds: 7 into an array of size 0

UnrealEditor_Engine!ComputeLocalSpaceTargetTM() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\PhysicsEngine\PhysicalAnimationComponent.cpp:221]
UnrealEditor_Engine!AActor::GetComponents<UMovementComponent,TSizedInlineAllocator<24,32,TSizedDefaultAllocator<32> > >'::2'::<lambda_1>::operator()() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\PhysicsEngine\PhysicalAnimationComponent.cpp:409]
UnrealEditor_Engine!FPhysInterface_Chaos::ExecuteWrite() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\PhysicsEngine\Experimental\PhysInterface_Chaos.cpp:590]
UnrealEditor_Engine!UPhysicalAnimationComponent::UpdatePhysicsEngineImp() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\PhysicsEngine\PhysicalAnimationComponent.cpp:441]
UnrealEditor_Engine!UPhysicalAnimationComponent::TickComponent() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\PhysicsEngine\PhysicalAnimationComponent.cpp:315]
UnrealEditor_Engine!FActorComponentTickFunction::ExecuteTick() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\ActorComponent.cpp:1223]
UnrealEditor_Engine!TGraphTask<FTickFunctionTask>::ExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:634]
UnrealEditor_Core!UE::Tasks::Private::FTaskBase::TryExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Tasks\TaskPrivate.h:504]
UnrealEditor_Core!FNamedTaskThread::ProcessTasksNamedThread() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:779]
UnrealEditor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:668]
UnrealEditor_Core!FTaskGraphCompatibilityImplementation::WaitUntilTasksComplete() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:1526]
UnrealEditor_Engine!FTickTaskSequencer::ReleaseTickGroup() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\TickTaskManager.cpp:815]
UnrealEditor_Engine!FTickTaskManager::RunTickGroup() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\TickTaskManager.cpp:1866]
UnrealEditor_Engine!UWorld::RunTickGroup() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\LevelTick.cpp:774]
UnrealEditor_Engine!UWorld::Tick() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\LevelTick.cpp:1518]
UnrealEditor_UnrealEd!UEditorEngine::Tick() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:2140]
UnrealEditor_UnrealEd!UUnrealEdEngine::Tick() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:550]
UnrealEditor!FEngineLoop::Tick() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5869]
UnrealEditor!GuardedMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:188]
UnrealEditor!GuardedMainWrapper() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:123]
UnrealEditor!LaunchWindowsStartup() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:277]
UnrealEditor!WinMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:317]
UnrealEditor!__scrt_common_main_seh() [D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

ruby ivy
# maiden wadi Some, but I'm curious what this code's intention is? What does it do?

Support me here: https://www.patreon.com/halbotstudios
Get my assets here: https://www.fab.com/sellers/HALbot Studios
Join the Discord and showoff your work here: https://discord.gg/Syccf4gTwE

Learn how to create a Resident Evil-inspired power switch puzzle in Unreal Engine 5! In this step-by-step tutorial, we'll replicate the iconic power sw...

โ–ถ Play video
maiden wadi
supple kiln
supple kiln
maiden wadi
#

What are you doing in that PreCMCTick function atm?

supple kiln
#

I don't know, it was made by epic games gameplay designers, which is on the new GASP for the UE 5.5 version.

maiden wadi
#

Double click it here. Should take you to the character bp.

#

Oh, you did post that. Derp. Been a long day. ๐Ÿ˜„

supple kiln
ruby ivy
#

bro please don't forget us ๐Ÿ˜ญ

maiden wadi
#

Epicโ„ข๏ธ coding. Accessing an array argument without checking it's index with an index argument. Judging by this code, whoever wrote this isn't in the habit of logging things and handling stuff gracefully.

maiden wadi
maiden wadi
maiden wadi
#

The TLDR is that you need a server RPC in either your character or Controller class. Interaction should RPC through one of those passing the replicated switch through. And then once on the server with that switch you can toggle it which should replicate to everyone.

supple kiln
ruby ivy
primal hare
#

There is a spline mesh BP to make walls. How can I make the spline a pickable variable? So I can pick an external spline?
Making the spline component inside the BP, a varaiable doesn't work.

jade inlet
#

Can somebody help me understanding how to use the while loop node correctly?
I want the while loop to check if the values of both variables are equal or higher than 5. If they are, then the condition is met and the values should be forwarded through the completed pin. Sometimes it works and sometimes (like in this case) one value is below 5.
What am I missing?

frosty heron
#

The while loop will keep running so long is higher is true... if you never set it to false at any point you will get an infinite loop error

jade inlet
frosty heron
#

You will have to ensure that you get out of the loop at some point.

#

Either that or a crash

jade inlet
#

Hmm, it still doesn't work as expected.
Do I maybe have to include the beforehand calculation into the while loop?

#

Oh wait, I forgot to re-connect the while loop ๐Ÿ˜… ๐Ÿ™ˆ

chilly sundial
#

I'd like to show the health bar of enemies which the player is looking at, but with a 'dead zone'. So it's fine to look a bit to the right/left, etc.
I thought of some solutions but I don't like any of them.
Something like sphere trace, capsule trace, capsule overlap. This works, but all of it requires looping two arrays to figure out which actors are still there, and which are not. Which would run on tick.
Or, alternative, dot product of forward vectors of enemy and player pawn in my enemy base bp, which also runs on tick?
Is there anything more elegant I'm not aware of?

dark drum
# chilly sundial I'd like to show the health bar of enemies which the player is looking at, but w...

I would go down the sphere trace route on tick to be honest. Unless you're doing heavy calcs, this should be fine. This is a finial trace (ball on a stick) I use for an interaction system.

Edit: Just to add, if you're already doing something like this, you could always look at hooking into it to prevent repeating the same stuff. Why trace again if the same sort of trace as already been done? It can be good to try reusing data you've already generated.

chilly sundial
warm parcel
#

Hello, when I use dumpticks I see that every timeline I have in a BP is ticking. Is there a way to set it up so that my timelines only tick while being played? Thank you

#

Or is that already the case?

dark drum
#

Does anyone have a nice way to turn an int into it's binary representation? (Preferably an array of bools)

dark drum
#

I think this might work but not in a position to test just yet but if anyone can point any issues with it let me know. This is the first time i've used the bitwise and node so I could be using it wrong lol.

unique harness
dark drum
celest trench
#

Hey everyone! I am wanting to help an artist visualize a spline during runtime. Is there a good way to draw a debug line along a spline or make only ONE specific spline become visible during runtime? I know there is the debug command to show all splines, but I need to only show one at a time otherwise it would look very messy. I don't see any variable on the spline I could change via blueprint so not sure what to do

humble glade
#

Hello, sorry to interrupt but when sending this variable throught an interface in returns the value with ceros. im still trying to figure out how to use interfaces inputs so i dont if i doing something wrong or i should something else for my idea to work.

humble glade
#

i thinks it is what you want

celest trench
#

๐Ÿ˜ฎ thanks

lost sierra
#

Hi everyone, creating a game where you can possess enemies that you fight. My main issue is that I have created these enemies as 'pawns', to be able to possess them, however can only find the floating pawn movement, rather than the normal character movement I would use. Obviously, floating pawn movement creates a few more issues than I'd like when it comes to them walking around in a nav mesh. Is there any way of me using character movement for a pawn, or using possess on a character blueprint?

mental trellis
#

Characters are Pawns.

lost sierra
#

I see, thank you. I will try it with a character BP now

sinful agate
#

Hey Everyone! Im trying to write my own hit detection type of thing using some math and distances. but for some reason my math is off I think. the out vectors of the hits ar just slightly off. heres how Im doing it. Im taking the target positions and subtracting my shooting original position giving me Di, then taking that and mutlipling it by the normalized shooting vector and adding in my origional shooting position but the vector is off at this point not by much but its still wrong. The Redline is the Shooting Vector, and the orange lines are projected positions to that vector. but as you can see they are not lining up

gentle urchin
#

Unsure what you're actually trying to do ๐Ÿ˜…

sinful agate
#

detect a hit based on math lol got an array of the postions and trying to do the math to see which is hit by the shooting vector

gentle urchin
#

Ah

#

Sounds expensive ๐Ÿ˜…

#

Especially in bp

#

You basically just need the dot value and the distance if the bullets are unaffected by gravity ?

sinful agate
#

yeah pretty much

gentle urchin
#

Nearest target in a filtered array, in other words

sinful agate
#

correct

#

it is working but the math is slighty off

#

Im wonding if its like rounding errors

gentle urchin
#

Not sure what your math really does

#

If we agree that dot + length is all we need..

sinful agate
#

gets more apparent the further away it gets

gentle urchin
#

Well yeah , the initial direction is wrong

sinful agate
#

yeah

#

Im definitly no mathematician

gentle urchin
#

Id setup the dot check first

#

Filter out anyone that doesnt meet the dot check

#

Now the dot tolerance decreases the further away you go

#

But thats another problem consideration

sinful agate
#

heres the awesome formula that I got from good ole chatgpt

#

lol I've broken it down bit by bit to recreate it

#

I think the premis must be flawed from the getgo

#

so I really only need the dot product to the scaled vector?

gentle urchin
#

not a mathematician either

#

but that's where i'd start

sinful agate
#

blind leading the blind lol why's math gotta be so hard

gentle urchin
#

dot product scaled by distance is what my fingers are telling me

sinful agate
#

so dot product of the targets position and the shooting vector?

gentle urchin
#

Target direction and aim direction

#

I think

#

there's some engine stuff to help you here tho

#

this is pure dot product filtering

#

which doesnt really cut it

#

this one however

gentle urchin
#

sounds like something you could use

#

GizmoMath.cpp has many of these gems

sinful agate
#

ooh

#

forgive me for asking, sounds like a noob thing but gizmomath is a plugin?

gentle urchin
#

nah, it's engine class

#

needs c++ to access, if the function isnt exposed

#

(many many usefull ones, are not ๐Ÿ˜ฆ )

sinful agate
#

ahhhhhhh

#

yeah this looks exactly what I have. maybe my red line is incorrect lol

#

omg

#

thats what it was

#

my math was right all along

#

thank you for your help @gentle urchin

gentle urchin
#

๐Ÿ˜„ nice!

#

we not math wizzards gotta stay together lol

steep violet
#

I need some help again and really hope someone can help. I have a BP actor with a collision box and once inside (begin overlap) its event tick starts to "tick". The event tick is supposed to check if the player presses forward or backwards to constantly move an object up the more the player gets nearer/presses forward or move the object down the more the player gets farer away/presses backwards.

Meanwhile I have tried all kinds of things that can be found on the web like get forward vector, get velocity, dot product and whatnot and my current attempt works .... but also when I strafe left or right the object of interest moves up and down. I just don't know what to do at this point for how to check for forward/backward movement and ignoring strafe movement.

marble badger
#

Spawn sound Cue stops working for a few seconds if a certain amount accumulates in the world, this causes the machine gun to sound silent at times, how do I solve this?

open furnace
#

Anyone knows how expose float for damage?
I know there is Set by caller inside Gameplay Effect but how do I set it from outside?

#

got it

unique harness
#

But also, why?

#

Would be much cleaner to write a C++ function and exposing to BPs if you're into learning that

#

Rama's victory plugin has it too iirc

chilly sundial
#

I can't for the life of me figure out why the second widget is not shown... whatever I try.

#

The widget itself works but I can't have both, why?

unique harness
#

Why are you creating them in BP instead of creating in the the component list

vague moth
#

Hello,
often when I find ways to implement certain functionality like gamepad inputs or other things in UI
All solutions that I find seem to be tied to the even tick
Is that just a common element with UI that everything useful needs to be on a tick or is it just bad optimization?
Also if anyone has knowledge on how to implement gamepad inputs into UI I would really appreciate it

I've been struggling with it for a while

unique harness
vague moth
# unique harness I would look into CommonUI

The engine warns me that it may not be suitable for shipping games
and given that I still don't know much about UI, I would like to learn a couple things before diving into plugins

unique harness
#

It's an Epic UI Framework

#

not a random 3rd party plugin

#

It's used in Lyra as well

vague moth
#

Oh thats reassuring
thanks for the info, will use it then probably

#

is it difficult to implement gamepad inputs in it?
do you maybe have a recommended resource where I can learn how to use the plugin?

unique harness
#

The base CommonUI widget has input handling built in

vague moth
#

fantastic
thank you

tidal jay
#

quick question

#

so, I have a 3d platformer

#

I want to make it so if the player falls below the map they respawn at a certain location

#

this is the node block i'm using

#

(this block I don't think its relevant but this is what event tick goes off and does prior to it sense you can only have one)

light onyx
#

Does anyone know how to make this work during play?

I want to select an actor without using the outliner or viewport during play
The issue is that the last node only works during edit mode

velvet pendant
#

Does anyone know why my online subsystem dosen't work?

i tried to create a multiplayer game.

i created the whole invite / friends list / join system.

everytime someone joins my sesion, they got back to the main scene of the game [Wich is MainMenu_Level] Instead of LobbyMenu as the BP should to

JoinSession -> On succes -> Open Level Object Ref[LobbyMenu]

Any ideas?

warped juniper
#

Heya there!
Iirc there was a way to fetch a variable reference inside a Function Library, so you could specifically set its value with it, right?

#

I will need to make a few nodes using that across several actors, so I'd like to hear again what was the name...

autumn pulsar
#

In the animation blueprint, is it possible to get the orientation of a bone in a sequence? Iโ€™m doing a layered blend between two animations, one of which being a reload, but the issue is if I blend using the root bone the alignment gets screwed up. So I was trying to ik lock the hands to the pre-blended animation

#

Wasnโ€™t sure if there was a better way to do this

autumn pulsar
warped juniper
# autumn pulsar Is this like, a global variable?

Not a global variable but a function I can use to set variables.
I did figure out the answer though: The Set By-Ref Var is node I was thinking of.
It lets you plug in a variable directly rather than its value and set it in one one. The node still gets access to the value it holds so you can make complex functions.

autumn pulsar
#

You can make the inputs of a function take a ref

warped plume
#

I know why this isn't working, but I don't know how best to fix it in BPs. Is there a way to keep the current index in scope for the event?

queen nexus
#

Is using a Timeline the best way to smoothly move an actor from location X to location Y (say, from a click event) when it would only fire once per click and not be in a constant state of movement?