For the CrateDM Mod im working on, to add some extra stuff to the mod i really want the crates (which is a randomly spawned actor with a crate mesh), to have different textures/skins depdending on the current map.
My scripting abilities are pretty much limited to 'borrowing' code, so i borrowed some code from the crateactor.uc in bonus pack.
This works fine offline, but in a multiplayer game, clients who connect to the server see the default skin, anyway to fix this?
this function is called in PostBeginPlay.
function SetMapCrateTex()
{
if ( Level.UV2Texture == None )
{
if ( (Level.Title ~= "Room5") )
{
Level.UV2Texture = Texture'CrateDMTex.Crates.woodencrate_01';
SurfaceType = EST_Wood;
}
if ( (Level.Title ~= "Room 6") )
{
Level.UV2Texture = Texture'CrateDMTex.Crates.crate_rusted';
SurfaceType = EST_Metal;
}
}




Reply With Quote


Bookmarks