sagittarius22 Posted June 12, 2011 Share Posted June 12, 2011 Does anyone know what's the purpose of the FOSE/NVSE comparenames command?Looks like it compares two names and returns a float value.What could it be used for? http://fose.silverlock.org/fose_command_doc.html#CompareNames Link to comment Share on other sites More sharing options...
pintocat Posted June 12, 2011 Share Posted June 12, 2011 Could be used to check if something has had its name changed with SetName, I guess. Link to comment Share on other sites More sharing options...
schlangster Posted June 12, 2011 Share Posted June 12, 2011 (edited) Well let's say you want to check if the name of X starts with "ABC". With 2 dummy objects P and Q, you could do setName P "ABC000000", setName Q "ABCZZZZZZZ", then use compareNames to check if X would be sorted after P but before Q (which means its name has to be ABCxxxxxxxx). The new setNameEx command makes that even more effective. Edited June 12, 2011 by schlangster Link to comment Share on other sites More sharing options...
sagittarius22 Posted June 12, 2011 Author Share Posted June 12, 2011 Well let's say you want to check if the name of X starts with "ABC". With 2 dummy objects P and Q, you could do setName P "ABC000000", setName Q "ABCZZZZZZZ", then use compareNames to check if X would be sorted after P but before Q (which means its name has to be ABCxxxxxxxx). The new setNameEx command makes that even more effective.Thanks! Is there any documentation about this SetNameEx command? Link to comment Share on other sites More sharing options...
schlangster Posted June 12, 2011 Share Posted June 12, 2011 Thanks! Is there any documentation about this SetNameEx command?The OBSE command doc contains information about it: http://obse.silverlock.org/obse_command_doc.html Link to comment Share on other sites More sharing options...
Recommended Posts