Lou Montana – User talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
{{informative|''Go ahead, say something!''}}
{{informative|''Go ahead, say something!''}}


== backpack ==
== [[addBackpackGlobal]] ==


Reverted back because of two issues from your note that I thought were misleading. The backpack is null only momentarily while your note might have been interpreted as backpack on remote machine was null period. The example provided takes care of removing backpack if unit has one, because checking for null backpack while unit has a backpack will break the code and no mags would be added. If unit has backpack it would work, if unit doesn't have backpack it would still work. removebackpackglobal doesn't report on remote machine immediately hence waiting. I personally don't see the need to edit what I posted, but if you feel strongly it needs to be, please discuss. [[User:killzone_kid|killzone_kid]] ([[User talk:killzone_kid|talk]]) 14:35, 6 February 2019 (CET)
Reverted back because of two issues from your note that I thought were misleading. The backpack is null only momentarily while your note might have been interpreted as backpack on remote machine was null period. The example provided takes care of removing backpack if unit has one, because checking for null backpack while unit has a backpack will break the code and no mags would be added. If unit has backpack it would work, if unit doesn't have backpack it would still work. removebackpackglobal doesn't report on remote machine immediately hence waiting. I personally don't see the need to edit what I posted, but if you feel strongly it needs to be, please discuss. [[User:killzone_kid|killzone_kid]] ([[User talk:killzone_kid|talk]]) 14:35, 6 February 2019 (CET)
Line 8: Line 8:


Tweaked a little, better? [[User:killzone_kid|killzone_kid]] ([[User talk:killzone_kid|talk]]) 14:50, 6 February 2019 (CET)
Tweaked a little, better? [[User:killzone_kid|killzone_kid]] ([[User talk:killzone_kid|talk]]) 14:50, 6 February 2019 (CET)
Should do the job, but why not (something like) this? Shorter and clearer.
{{Warning|The added backpack is created on the machine where unit is local. If the unit is remote an immediate [[backpackContainer]] command usage will return [[objNull]].<br />
The workaround is to wait for the backpack information's network synchronisation (See Example 2)}} - [[User:Lou Montana|Lou Montana]] ([[User talk:Lou Montana|talk]]) 14:57, 6 February 2019 (CET)

Revision as of 14:57, 6 February 2019

Template:informative

addBackpackGlobal

Reverted back because of two issues from your note that I thought were misleading. The backpack is null only momentarily while your note might have been interpreted as backpack on remote machine was null period. The example provided takes care of removing backpack if unit has one, because checking for null backpack while unit has a backpack will break the code and no mags would be added. If unit has backpack it would work, if unit doesn't have backpack it would still work. removebackpackglobal doesn't report on remote machine immediately hence waiting. I personally don't see the need to edit what I posted, but if you feel strongly it needs to be, please discuss. killzone_kid (talk) 14:35, 6 February 2019 (CET)

Hello, a provided example should go straight to the point and the description should not display any personal view ("This is inconvenient, but it is what it is."). The whole "check if there is a backpack" is mission-creator related, not of wiki concern. I agree though, the "momentarily" aspect was not clear in my note and should remain. Please join the Official Arma Discord to discuss further. - Lou Montana (talk) 14:43, 6 February 2019 (CET)

Tweaked a little, better? killzone_kid (talk) 14:50, 6 February 2019 (CET)

Should do the job, but why not (something like) this? Shorter and clearer.

The added backpack is created on the machine where unit is local. If the unit is remote an immediate backpackContainer command usage will return objNull.
The workaround is to wait for the backpack information's network synchronisation (See Example 2)

- Lou Montana (talk) 14:57, 6 February 2019 (CET)