[1.0.0] LuaForce API set_friend() detail

This subforum contains all the issues which we already resolved.
Post Reply
Honktown
Smart Inserter
Smart Inserter
Posts: 1026
Joined: Thu Oct 03, 2019 7:10 am
Contact:

[1.0.0] LuaForce API set_friend() detail

Post by Honktown »

The set_friend() documentation says the second argument is "cease_fire", which gave me the impression it influenced the cease_fire attribute. After that didn't go as expected, I noticed there was no "set_enemy" etc function. The second argument sets the "friend" status to true or false. I believe the documentation could be changed to reflect that more accurately. Such as "status" instead of cease_fire with a description "set 'other' as friend or non-friend".

Edit: sorry, this should probably be moved to modding API discussions.
I have mods! I guess!
Link

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.0.0] LuaForce API set_friend() detail

Post by Rseding91 »

Thanks for the report. I fixed the lua API documentation.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”