#Can someone help me with a kinda advanced script?

1 messages · Page 1 of 1 (latest)

fair garnet
#

dm me for more info

neon crow
#

just send it here

#

instead of dming people

fair garnet
#

so basically

#

I want it to

#

like

#

detect when a player hits npc

#

and then all npcs agro at player

#

and start chasing him and attacking

#

and then I also want blocks for both npc and player but I think i can do that alone

#

@neon crow

limber comet
fair garnet
#

dw

limber comet
#

It can also help you optimise your pathfinding by using birdoid style pathfinding (unless you’re using flow paths, but I don’t would prefer it)

limber comet
fair garnet
#

that would be awesome!

fair garnet
#

I js did what i thought COULD work

limber comet
fair garnet
#

yes

limber comet
#

Anyways, as I said:

make a class for a “group” of enemies. Make it consist of enemies (all the same, or a mix of multiple, your choice). Then as one member of the group agros, make it send a signal to the group class, to then agro all enemies in said group

fair garnet
#

what

#

isnt that this js with a folder?

#

or

#

I dont get it

limber comet
#

Then as for pathfinding, you can just make all but one npc behave as “limbs”, to follow the main npc around

limber comet
#

Or ECS, or all that matters

#

I mean, it can work with a folder. But I would say that that would result in a rather ugly code

fair garnet
#

no

#

Im dumb for this bro

#

I js know like]

#

basics

#

I never did AI

#

or stuff

#

sorry 😭

#

I js really need a deep ahh explenation

#

:(

limber comet