# We define a new type of object called "HelloBot" HelloBot: entity = entity{ # We add a mesh component to give it a shape MeshComponent: mesh_component = mesh_component{ # This sets the shape to a simple box Mesh := StaticMesh'Engine/BasicShapes/Box.StaticMesh' }, # We add a transform component to set its position TransformComponent: transform_component = transform_component{ # This moves it slightly to the right so you can see it Translation := vector3{ Left := 100.0, Up := 50.0, Forward := 0.0 } } } # This function runs when the game starts OnBegin(): void = ( # We find the main trunk of our scene graph if (SimEntity := Entity.GetSimulationEntity[]): # We add our new HelloBot to the trunk # This makes it appear in the game! SimEntity.AddEntities(array{HelloBot}) )