Boy is this one bothersome!
The problem is that I'm trying to use an Actor's SetStaticMesh function to no avail. There are essentially zero references to this information online and I have no idea why -- it would seem to be a very useful thing to do!
In the only reference to this function I can really use (searching google for setstaticmesh and going to the Hot Potato mod) the following line is used:
whereas my code is:
I get an error when compiling stating that:
Error, Can't find StaticMesh 'ConveyorMeshes.GlobeFixed'
The perplexing thing is, if I just set the default property as:
everything is fine and the mesh works ingame.
So the question is, why can't it find the mesh when I try to use SetStaticMesh but it can find it when I set it through default properties?
Thanks for any help you can give me, this one is quite the bother.
The problem is that I'm trying to use an Actor's SetStaticMesh function to no avail. There are essentially zero references to this information online and I have no idea why -- it would seem to be a very useful thing to do!
In the only reference to this function I can really use (searching google for setstaticmesh and going to the Hot Potato mod) the following line is used:
Code:
SetStaticMesh(StaticMesh'XGame_RC.BombEffectMesh');
Code:
SetStaticMesh(StaticMesh'ConveyorMeshes.GlobeFixed');
Error, Can't find StaticMesh 'ConveyorMeshes.GlobeFixed'
The perplexing thing is, if I just set the default property as:
Code:
defaultproperties
{
StaticMesh=StaticMesh'ConveyorMeshes.GlobeFixed'
}
So the question is, why can't it find the mesh when I try to use SetStaticMesh but it can find it when I set it through default properties?
Thanks for any help you can give me, this one is quite the bother.