DreadedEntity – User talk

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 23: Line 23:


Your note on cursorTarget is half true**, while in the boundingbox (seemingly correlated) that object is returned constantly; but it still returns other objects when pointed at them. best examples of this seem to be standing under the taru, mh tail rotor or in a shoothouse tunnel. **edit: i guess my issue really is just the word 'always'
Your note on cursorTarget is half true**, while in the boundingbox (seemingly correlated) that object is returned constantly; but it still returns other objects when pointed at them. best examples of this seem to be standing under the taru, mh tail rotor or in a shoothouse tunnel. **edit: i guess my issue really is just the word 'always'
== Signatures and Interwiki Links ==
FYI using <nowiki>~~~~</nowiki> will automatically mark your signature where ever you put it like this: [[User:Benargee|Benargee]] ([[User talk:Benargee|talk]]) 04:00, 12 December 2014 (CET) <br>
Also for linking pages on this wiki there is no need to do this: '''<span style="color:red"><nowiki>[https://community.bistudio.com/wiki/User_talk:Benargee Benargee]</nowiki></span>''' = [https://community.bistudio.com/wiki/User_talk:Benargee Benargee]. <br>
They can simply be done like this: '''<span style="color:Green"><nowiki>[[User talk:Benargee]]</nowiki></span>''' = [[User talk:Benargee]]. <br>
Or like this '''<span style="color:Green"><nowiki>[[User talk:Benargee|Benargee]]</nowiki></span>''' = [[User talk:Benargee|Benargee]]. <br>
Just figured I would point this out, because I have seen a few times that you have used full links in the wiki. Cheers
--[[User:Benargee|Benargee]] ([[User talk:Benargee|talk]]) 04:00, 12 December 2014 (CET)

Revision as of 04:00, 12 December 2014

Tips & Tricks

The easiest way to remove a hint from the screen is: hint "Delete this hint after 5 seconds." [] spawn { sleep 5; hint ""; }

This should be common sense, but...Always use parenthesis when dealing with array elements. All of the scripting commands will reach the array variable reference, then use that for input, ignoring your select command. This will usually result in a "Type Array, expected (something else)" error. Occasionally, a command is able to accept arrays and single objects, so it will throw a different error when it reaches your select command. _myArray = [0,1,2,3,4,5]; _myResult = _myArray select 0 + _myArray select 4; //Generic Error Reported, engine is trying to add 0 & _myArray together. "#" is right before the "+" _myResult = (_myArray select 0) + (_myArray select 4); //Result is 4 as expected
hint str _myArray select 3; //Hint will be [0,1,2,3,4,5]. Yes, that's the entire array. hint str (_myArray select 3); //Hint will be 3, as expected.
There are many more situations where programming techniques will break your code. Use parenthesis.

Memorize a large portion of the wiki. Seriously.

cursortarget

Your note on cursorTarget is half true**, while in the boundingbox (seemingly correlated) that object is returned constantly; but it still returns other objects when pointed at them. best examples of this seem to be standing under the taru, mh tail rotor or in a shoothouse tunnel. **edit: i guess my issue really is just the word 'always'

Signatures and Interwiki Links

FYI using ~~~~ will automatically mark your signature where ever you put it like this: Benargee (talk) 04:00, 12 December 2014 (CET)
Also for linking pages on this wiki there is no need to do this: [https://community.bistudio.com/wiki/User_talk:Benargee Benargee] = Benargee.
They can simply be done like this: [[User talk:Benargee]] = User talk:Benargee.
Or like this [[User talk:Benargee|Benargee]] = Benargee.
Just figured I would point this out, because I have seen a few times that you have used full links in the wiki. Cheers --Benargee (talk) 04:00, 12 December 2014 (CET)