Guys, is there a way in uscript to write generic find function, like:
function /*result (generic)*/ findNearest(/*generic class here, once it can be weapon pickup, once it could be health pickup, once it could be something else*/)
Thank you.
in C++ this would look something like:
template<class T>
T findNearest(T toFind)
{
//look for T
return T;
}
function /*result (generic)*/ findNearest(/*generic class here, once it can be weapon pickup, once it could be health pickup, once it could be something else*/)
Thank you.
in C++ this would look something like:
template<class T>
T findNearest(T toFind)
{
//look for T
return T;
}
Comment