Is it possible to spawn an actor while simulating?

I have an audio/visual project i’m working on and I would like to spawn and despawn a point light by pressing the L key on my keyboard while simulating the level. I’ve tried the regular ways of spawning an actor but it doesn’t appear to work unless i’m actually controlling a character while I do it. Any help would be greatly appreaciated.

For pressing the L key, no, you have to be playing.

You can spawn even in editor mode though, even from the construction script, as long as the spawn node is in the event graph. It has to be marked as ‘run in editor’ and called from construction.

1 Like

Thanks for the quick reply! Is there any way to spawn an object in editor mode/simulating with a keystroke command or similiar?

You can spawn an object with a click. Is that any good?

As a fall back that could work. I would really like to key bind that I can control the lights in the scene though, if not spawn them then perhaps be able to control their intensity, potentially set the change in their intensity to a bpm.

You can’t really bind a key unless the map is running. You can get rid of your player character ( from the world settings ) which would mean the system falls back to the default pawn, which is not a player. It’s very like being in simulate mode, except stuff actually works! :slight_smile:

If you want to sync to bpm, then you do need to be running.