I thing I read something about hiding materials, but I can't find the topic. And I'd like to use another method if possible since it would involve a large amount of materials on my models.
I don't think you can change a model data with triggers, I don't remember any function that could do that.
However, in the Data Editor, you might find something that might help you.
In the Model tab, try to play with the field "Texture : CModel_TextureInfos +" (Raw name, my editor is half in french so I can't write the exact english name).
If that works fine, this implies to create N models with all your expected meshes, then you will need to play with Actor Events in order to swap the actor's model.
AND from this point, during your game, you can trigger actions to, for example, send a signal to your actor which swap your model.
EDIT : ONE MORE THING
In your actor Events (field), you can find some instructions about model materials.
You can indeed apply or remove materials.
And since its actor Events, you can add signal events to catch sent from triggers and do your thing with materials.
Hey guys,
Now that I finally have multimesh models, do you know any way to dynamicly hide/show them with triggers/data ?
https://9apps.ooo/
I thing I read something about hiding materials, but I can't find the topic. And I'd like to use another method if possible since it would involve a large amount of materials on my models.
Thanks in advance.
Hello,
I don't think you can change a model data with triggers, I don't remember any function that could do that.
However, in the Data Editor, you might find something that might help you.
In the Model tab, try to play with the field "Texture : CModel_TextureInfos +" (Raw name, my editor is half in french so I can't write the exact english name).
If that works fine, this implies to create N models with all your expected meshes, then you will need to play with Actor Events in order to swap the actor's model.
AND from this point, during your game, you can trigger actions to, for example, send a signal to your actor which swap your model.
EDIT : ONE MORE THING
In your actor Events (field), you can find some instructions about model materials.
You can indeed apply or remove materials.
And since its actor Events, you can add signal events to catch sent from triggers and do your thing with materials.
Hope you can find your way.
Have a nice day.