Skip to content

Missing functions: SetLocalVector & GetLocalVector

Can we please add the functions SetLocalVector() & GetLocalVector()?
Should be fairly trivial i think?
shadguy

Comments

  • SherincallSherincall Member Posts: 387
    edited February 2018
    What's wrong with doing it yourself:

    void SetLocalVector(object oObject, string sVarName, vector vValue) { SetLocalFloat(oObject, sVarName + ".x", vValue.x); SetLocalFloat(oObject, sVarName + ".y", vValue.y); SetLocalFloat(oObject, sVarName + ".z", vValue.z); } vector GetLocalVector(object oObject, string sVarName) { return Vector(GetLocalFloat(oObject, sVarName + ".x"), GetLocalFloat(oObject, sVarName + ".y"), GetLocalFloat(oObject, sVarName + ".z")); }
    squattingmonkdunahan
  • HimmelweissHimmelweiss Member Posts: 72
    Whats wrong with just adding them officially?
    Just seems weird they were left out.
  • SherincallSherincall Member Posts: 387

    Whats wrong with just adding them officially?

    First someone needs to read the request, process it, send it to the decision makers. Then they decide whether to do it or not. If yes, a dev implements it, writes the test, sends it off to the lead dev for review and inclusion. Then someone writes it in the release notes, and someone else double-checks it. None of these are more than 30 minute tasks, but it adds up. And there's no tangible benefit - if you run the new function in a loop for a year, you will not shave off more overhead (compared to the above snippet) than it took to implement. Let them focus on stuff that's not trivial to work around.

    On the other hand SetLocalEffect() and SetLocalItemproperty() could be much more interesting.
    squattingmonkdunahanNeverwinterWightszunath
  • HimmelweissHimmelweiss Member Posts: 72
    It still is weird that they are missing (just for completion sakes).
    But i get your point.
Sign In or Register to comment.