#I'm gonna be missing something dumb aren

1 messages ยท Page 1 of 1 (latest)

hot nest
#

Lets keep it in here

light pelican
#

You're right, good call

hot nest
#

this looks fine to me

#

I assume TotalSpawnCount has a valid amount ?

#

so does SpawnFrequency ?

#

And "Speed" ?

light pelican
#

Frequency: 1
Total Spawn: 3
Speed

#

speed disappeared?

hot nest
#

speed is in the farm truck

#

if you want to expose it, you can

light pelican
#

right

#

its 25

hot nest
#

25 is pretty slow

#

extremely slow

#

mine was 1500

#

1500uu per second

light pelican
#

Oof, okay lemme bump it up and see if they spawn

hot nest
#

(they should still spawn)

#

Lifespan is incorrect

#

should be Lenght / Speed

#

gives you a value in seconds

light pelican
#

changed the addition to division, upped the speed but am met with , the value returning error is at 150 - is that also drastically too low?

hot nest
#

what does the error say

#

you clipped out the important part ๐Ÿ˜„

light pelican
#

i was wrong its the spline ref variable (woulda seen that if i didn't clip out the important part, eh?)

hot nest
#

so, does the thing spawn at all?

light pelican
#

negative, no dice

hot nest
#

is BP_Spline in the world ?`

#

and does it have a distance?

light pelican
#

here ya are

hot nest
#

does it have a visible mesh aswell?

light pelican
#

i've no skeletal mesh assigned!

hot nest
#

just select anything ๐Ÿ˜„

#

so we can see it

light pelican
#

I need to get a banana for scale

hot nest
#

haha

#

but does it wooork ๐Ÿ˜„

light pelican
#

i'm gettin' the same error on the spline ref in the truckBP, i must have something messed up in the SplineBP?

hot nest
#

it seem to be there

#

refresh the spawnactor node

#

and make sure it doesnt disappear

light pelican
#

she's still there, i'm still gettin' errors Here's the splineBP... am i not passing on the spline itself correctly?

hot nest
#

you are, but im seeing one animal at editor time

#

and that one will ofcourse not have the correct spline ref

#

if you want it to work

#

you must select it in the editor

#

then find the details panel

#

then find the "SplineRef" variable

#

select the "picker" next to it

#

and pick the spline in the level

light pelican
#

The animal is the skel mesh in the SplineBP, not the actual actor being spawned - if that matters

though i've no spline ref to select

hot nest
#

wait what

#

SplineBP should just be a regular Actor

#

not a character/pawn

light pelican
#

heard, swapped that but still met with the error over in TruckBP (which does have a mesh)

hot nest
#

the Splineref in the TruckBP is fed during spawn

#

Is this your general "Truck BP" ?

#

that you've spawned in the level manually?

light pelican
#

I did reuse an old asset that didn't have much in it - i'll make a quick character and just throw the alpaca on it

hot nest
#

Its fine i was just curious

light pelican
#

heard

hot nest
#

all those spawned manually will ofcourse not have the spline ref

#

so they will toss errors

#

just move the "tick" validator to before CurrentDistance is set

#

since we're using it to read the spline length

#

that should remove all the errors

light pelican
#

We're cookin', errors are gone but i see nothing spawning. Let me throw a print string in there and see if its atleast alive

hot nest
#

! good call

light pelican
#

print string successfully triggers after spawn actor in the spline, i messed with the spawn scale to make sure it wasn't massive or the size of an atom but that doesn't seeeem to be it

#

it does however delete itself after awhile during simulation

#

MAAAAAAAAAAN

hot nest
#

Thats rhe setLifespan part

#

World location

#

Not local? ๐Ÿ˜‚

light pelican
#

i forgot to reset the default actor after switching the bloody variable in the splineBP (it's back to local i was desperate ๐Ÿ˜‚ )

hot nest
#

๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

light pelican
#

what happens on discord stays on discord, got it?

hot nest
#

Fine, fine

#

Would make such a great story

light pelican
#

what does Current Distance do, by the way?

A modern Synecdoche, for sure. Polanski would be jealous.

hot nest
#

It just tracks where we are, on the spline

#

Distamce travelled... Milage.. etc

light pelican
#

Ah! I should leave that variable at zero then?

hot nest
#

Y

light pelican
#

I have no idea to be honest

hot nest
#

Feel free to test it

#

Set it to 200

#

See what happens

#

It will jump to 200cm onto the spline ^^

light pelican
#

ooooooohhhh

#

last little thing and i think i'm... i'm good. Holy crap the progress made in 2 hours it's unbelievable.

It seems my spline deletes before all 3 actors spawn and complete their loop. I have this in the Truck_BP

hot nest
#

Spline deletes?

#

You got DestroyActor in SplineBP?

light pelican
#

nope, as far as my (admittedly bad) eyes are aware i'm just as your code is - it'll spawn 2 actors and then after say... a second they just fall, spline goes byebye and the third actor spawns at 0,0,0

#

i tried making it an open loop and some other junk, but it seems to happen exactly the same way errytime

hot nest
#

Was bp spline a new blueprint?

#

Show logic again?

light pelican
#

Yup! While the truck had a health variable already - the spline is fresh

hot nest
#

Check Class defaults ->initial lifeSpan

light pelican
#

ah, set to Zero. is it safe to make a variable of that or could i potentially create issues later?

hot nest
#

0 is fine

light pelican
#

ah heard, troubleshooting

hot nest
#

Then im unsure what deletes it

#

Nothing in the code you show me does destroy it

light pelican
#

yeaaah.. i changed the spawn frequency to see if it would stay alive if it took ages to spawn something but even then it pops outta existence after a second or so ๐Ÿ˜†

hot nest
#

Makes no sense ๐Ÿ˜…

#

Isnt there some OnDestroyed event

#

Or event destroyed

light pelican
#

i put another one in the world map and they decided to work

hot nest
#

Huh

light pelican
#

good enough for me

hot nest
#

Oh damn ๐Ÿ˜‚

#

Might have touched instanve settings then ๐Ÿคฃ

#

Ah well all good

#

Better story yet to unfold

#

And never be told ๐Ÿ˜ฆ

light pelican
#

shoulda reset the instance first to see!

#

hey, give it a few years and eventually it can be another project one of us starts and ... probably never finish. facepalm

hot nest
#

Thats the life of most gamedevs ๐Ÿ˜…

light pelican
#

I'm just glad to be away from any engines using Visual Basic 6 ๐Ÿคฃ learning unreal has been a whoooole new world

hot nest
#

well best of luck in it! And with your game ๐Ÿ™‚