Accessing function parameters only works in return statements, elsewhere it throws "Object is null" exception in `DustType::GetDustType`.