What do you mean by example?
the code or the model in question or both?
in case just the code is sufficient:
TEntity ent = LoadModel("xyz.gmf");
EntityViewRange(model, VIEWRANGE_INFINITE); // this does not have any effect
then I tried this:
TEntity ent = LoadMesh("xyz.gmf");
EntityViewRange(model, VIEWRANGE_INFINITE); // this does not have any effect as well
but if I try the following the code, EntityViewRange works just fine
TMesh mesh = CreateMesh();
TSurface surf = CreateSurface(mesh);
//...
// some commands to set vertices, normals and define a simple quad
//...
UpdateMesh(mesh);
EntityViewRangemesh, VIEWRANGE_INFINITE); // this works just fine..
so my question is:
how can I change the view-range of the model?
the model is exported from MAX using gmf-exporter.
remember: we are adding the model (or multiple copies/instances of it) to the scene during run-time.
so dragging an instance or multiple instances of the model into the scene and then loading the scene is out of question here.
do we have to include something in the lua-script of the model?