Skip to main content

Scalable Modular Behaviour demo level overview

Open it by going to /All/EngineData/Plugins/ScalableModularBehaviour/Demo/Smb_Demonstration.

Playing

Movement controls: WASD Switching between Top Down and Third person: Q

Top down mode: Left Mouse Button to select Right Mouse Button to tell selected entities to move (note ensure there is NavMesh there, if not NavTarget not found error will happen)

Third Person: Left Mouse Button: Attack Right Mouse Button: Attack (Also allows you to turn camera)

Entities

Where the player spawns you can see a square of entities spawning, they are in the player team, and you can mark them to tell them where to go.

On the other side of the white rectangles you can see the enemy entities, send your entities towards them to have them attack eachother.

Spawning

The spawning in the level is done with an Actor that on begin play calls it's BP_Smb_Spawner_Component's event SpawnGrid.

To change amount of entities spawned change the spawner components Spawn Count variable, to change type of entity change the EntityTypes array.

The BP_Spawncube actor also has a collision sphere, which when the ThirdPerson character walks on calls the SpawnGrid event.

Custom Spawning actor

To make your own of this actor you create or find your actor you want to use, and put an BP_Smb_Spawner_Component in it, call the spawn function when you want spawning to happen.

You can change the Environment Grid query or add a new one to the component to customize behaviour. (More spawning options TBD)

Team based entities

On the BP_SpawnCube_OtherTeam, the entities have a different MassConfigAsset, which only changes the team variable to 1 instead of 0.

To look at the NavMesh when in viewport click P, it's important the NavMesh is where entities should be able to walk, and also that it's connected so they can go from location to location.