Talk:SetIgnoreFriendlyHits

Active discussions

Number?Edit

The nomenclature suggests that the number of hits is settable per actor in that the number is an integer rather than boolean, but the text seems to indicate it's a simple on/off setting. Anybody know which it is? --vom 12:56, 8 April 2010 (EDT)

Oblivion doesn't have boolean variables; boolean values simply take an integer and test !=0. I'm fairly certain the game will retain the value (so if you used SetIgnoreFriendlyHits 44, GetIgnoreFriendlyHits would return 44 - but as far as the game is concerned, all non-zero values will be treated exactly the same (true).
Actually, to be truly thorough, the game doesn't really have any int (short or otherwise) variables, either. It actually stores everything as floats. Things declared as int/short/long (all of which are identical in Oblivion) are really float variables that get truncated at the decimal point.
Yes, this is really stupid.
Dragoon Wraith TALK 12:39, 9 April 2010 (EDT)
Well, really confusing, at any rate! Maybe the "iVariableName" type of thing should be dropped in place of effective values, do you think? I'm of the opinion that a synopsis of "functionname 0 or 1" would be more helpful for the wandering confused such as myself... --vom 20:10, 9 April 2010 (EDT)
Yeah, it was a non-standard Syntax thing. Updated it.
Dragoon Wraith TALK 21:05, 9 April 2010 (EDT)
Thanks. :) That's one less thing to confuse me. Of which there are many! --vom 09:23, 10 April 2010 (EDT)
Return to "SetIgnoreFriendlyHits" page.