SilentSpike – User talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:


Would you mind explaining your edit? It is ambiguous as to what you are supposed to test for isNil. I have just checked and _this select 1 returns objNull on mission start. What do you mean it is unreliable? Have you got any evidence? [[User:Killzone Kid|Killzone Kid]] ([[User talk:Killzone Kid|talk]]) 16:20, 28 January 2015 (CET)
Would you mind explaining your edit? It is ambiguous as to what you are supposed to test for isNil. I have just checked and _this select 1 returns objNull on mission start. What do you mean it is unreliable? Have you got any evidence? [[User:Killzone Kid|Killzone Kid]] ([[User talk:Killzone Kid|talk]]) 16:20, 28 January 2015 (CET)
:_this select 1 does indeed return objNull on mission start, however it also sometimes returns objNull in future respawns. The only evidence I have is that during a mission I recently made not all players ended up having the respawn code run upon respawn, but instead had the mission start code run again. I'm not sure how to reproduce that consistently though as it is probably due to network variance.<br><br>As for the isNil check, something like this has fixed the problem in the aforementioned mission:
<code>if (isNil "UniqueVariableForDetectingRespawnAtStart") then {<br>    UniqueVariableForDetectingRespawnAtStart = true;<br>    <Code that should run on mission start><br>} else {<br>    <Code that shouldn't run on mission start><br>};</code> -SS

Revision as of 19:44, 28 January 2015

Regarding your edit of SL_HORZ. 0x400 is Hex representation of decimal 1024. Control can understand either --KK

Ah right, didn't even consider that because two of the styles had the same definition and I figured the VBS wiki was likely more accurate. Thanks for clarifying. --SS

Regarding listscroll vs scroll. The listscroll was added by BIS dev recenly, see history of edits, was this incorrect? --Kk

In my experience yes, Arma gave me an error about there being no ScrollBar class when I used the previous example (this was however Arma 2, it's possible they changed the class name in A3). --SS
Would you mind restoring dev's note indicating it is applicable to Arma 3 only? --KK
No problem. How's that? --SS
I have noticed some older examples have been deleted, so I restored them, please check if I overwritten anything --KK
Looks good to me --SS

re: isNull vs isNil

Would you mind explaining your edit? It is ambiguous as to what you are supposed to test for isNil. I have just checked and _this select 1 returns objNull on mission start. What do you mean it is unreliable? Have you got any evidence? Killzone Kid (talk) 16:20, 28 January 2015 (CET)

_this select 1 does indeed return objNull on mission start, however it also sometimes returns objNull in future respawns. The only evidence I have is that during a mission I recently made not all players ended up having the respawn code run upon respawn, but instead had the mission start code run again. I'm not sure how to reproduce that consistently though as it is probably due to network variance.

As for the isNil check, something like this has fixed the problem in the aforementioned mission:

if (isNil "UniqueVariableForDetectingRespawnAtStart") then {
UniqueVariableForDetectingRespawnAtStart = true;

} else {

};
-SS