I'm trying to log certain events as they happen in game, and one of the things I want to log is when a sign is updated - I have the following code:
But when I look at what is logged I get:Code:OnSignUpdated: function(player, sign, text) { var log = player + ' updated ' + sign; },
assets/prefabs/deployable/signs/sign.medium.wood.prefab[4676574] updated UserNameHere[1xxx8/7656xxxxxxxxx3880]
player and sign are swapped for whatever reason. Is this something that is known and likely to be fixed soon?
Thanks.
Solved OnSignUpdated arguments swapped in docs
Discussion in 'Rust Development' started by Rebajas, Jul 12, 2016.
-
Wulf Community Admin
The Docs for non-C# apparently had it listed wrong. The player comes after the sign.
-
Thanks - that's great. I was worried that it would change at some point in the future and my logging would need updating.
