#Using script variables with preloaded script

4 messages · Page 1 of 1 (latest)

woeful raptor
#

Hello, is there a way to accomplish something like this? Where I don't need to create a script for each of my NPC's children just to assign them a variable in _ready(), and just set in the editor the script variable?

elfin quartz
#

Your NPC scene could have an export var cutscene_array : String?

#

That would give you a field in the inspector.

#

Oh although, it's not clear to me, if this is an array of strings it would be export var cutscene_array : PoolStringArray