Skip to content

Transients not working under certain constraints #63

@Kelwan

Description

@Kelwan

This works:

transient Colliding {
	entity overlapping_entity;
}

This example doesn't work:

transient SpawnLocation {
	f32 point_x;
	f32 point_y;
}

The component/transient is added here:

system GeneratePlayerLocation {
	include Player;
	readonly Position;
	system SpawnCreepTimer {
		readwrite CreepSpawner;
		adds SpawnLocation;
	}
}

For context, this is a system used to spawn a creep in Seaube's Collision project. When the SpawnLocation component is a transient it won't trigger. This problem can be reproduced there.

system GenerateCreep {
	include CreepSpawner;
	readwrite SpawnLocation;
	generates {
		required Creep;
		required Position;
		required Velocity;
		required CanMove;
		required Health;
		required Collidable;
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions