@specter-automation/test 1.0.119 → 1.0.120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -633,6 +633,9 @@ class SpecterWorld {
|
|
|
633
633
|
const properties = options?.properties;
|
|
634
634
|
const spawnController = options?.spawnController;
|
|
635
635
|
await this.evaluate("SpawnActor", { assetPath, tag, location, rotation, properties, spawnController }, assetName, tag);
|
|
636
|
+
if (options?.name) {
|
|
637
|
+
return this.actorByTag(tag).named(options.name);
|
|
638
|
+
}
|
|
636
639
|
return this.actorByTag(tag);
|
|
637
640
|
}
|
|
638
641
|
// ==========================================
|