Code: Select all
frame.add{
type="camera",
name="entity_camera",
position=entity.position,
surface_index=surface.index
}
Code: Select all
frame.add{
type="camera",
name="entity_camera",
position=entity.position,
surface_index=surface.index
}
You will need to give the element style a minimal width and minimal heightaaaaaaaaaaaaaaaaaa8 wrote:Suppose I want to create a camera on an entity position. Given surface, entity and frame, I usedIt does not show anything. How do I make it show the camera? ThanksCode: Select all
frame.add{ type="camera", name="entity_camera", position=entity.position, surface_index=surface.index }