Search found 4 matches

by Wannie
Mon Mar 20, 2023 10:07 pm
Forum: Minor issues
Topic: [1.1.72] on_trigger_created_entity has no last_user when player.character is destroyed before the entity is created
Replies: 4
Views: 1201

Re: [1.1.72] on_trigger_created_entity has no last_user when player.character is destroyed before the entity is created

Thanks for the clarification. I assume its not possible to change the projectile so it can also link to "LuaPlayer" or "playeridentification"? Because according to the API documentation, both the parameter "player" in surface.create_entity() and the attribute "last...
by Wannie
Mon Mar 20, 2023 5:19 pm
Forum: Minor issues
Topic: [1.1.72] on_trigger_created_entity has no last_user when player.character is destroyed before the entity is created
Replies: 4
Views: 1201

Re: [1.1.72] on_trigger_created_entity has no last_user when player.character is destroyed before the entity is created

Sorry for the late reply. Its neither one of these. I try to clarify the situation more. 1. First the player is read via local player = game.players[...] 2. Second, a capsule is created via command surface.create_entity{ player = player }. This capsule has a projectile asscociated to it. The project...
by Wannie
Tue Nov 15, 2022 6:48 pm
Forum: Minor issues
Topic: [1.1.72] on_trigger_created_entity has no last_user when player.character is destroyed before the entity is created
Replies: 4
Views: 1201

[1.1.72] on_trigger_created_entity has no last_user when player.character is destroyed before the entity is created

When a projectile is created via LuaSurface.create_entity() with the parameter “player” set, but the player.character is destroyed before the projectile has time to trigger the “on_trigger_created_entity” event, the variable last_user in the created event.entity is nil. The issue can be reproduced b...
by Wannie
Fri Apr 16, 2021 4:44 pm
Forum: Mods
Topic: [MOD 1.1] Combat Robots Overhaul
Replies: 0
Views: 1537

[MOD 1.1] Combat Robots Overhaul

Description: This mod aims to overhaul the behaviour of Factorio's vanilla combat robots to make them more useful. Defender Units will either follow the player or automatically defend the base in case of a biter attack. (toggle-able) Distractor Units have been renamed to Sentry Units to better desc...

Go to advanced search