#where should the scripts for npcs go?

1 messages · Page 1 of 1 (latest)

lofty osprey
#

context: I am making a simple top down single player game which is meant to have zombie npcs that hunt and punch human npcs.

issue: I highkey suck at scripting because I haven't worked on an actual finished game yet meaning 90% of my scripts were client scripts or they just the child of an object. so I honestly don't really get how to organize all of ts but that's too vague so I'll just ask: where should the scripts controlling zombies go? also, is one server script enough?

warped loom
#

Put the script for the npc... in the npc

#

Either that or you can make a manager script which is more complex so just put the script inside the npc

lofty osprey
#

a manager script can't be that hard right?

warped loom
#

Also it probably won't lag. Try a simulation of what you are gonna do and see whether it would lag or not.

lofty osprey
#

also, where do you think the player's scripts should go? keep in mind that it's singleplayer and it's about spawning units.

warped loom
#

.

#

Starterplayerscripts 😭

#

No need to overcomplicate things