# after relog or server start the static mesh not saved?

**URL:** <https://forums.unrealengine.com/t/after-relog-or-server-start-the-static-mesh-not-saved/98784>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [August 19, 2017, 3:29pm UTC](https://forums.unrealengine.com/t/after-relog-or-server-start-the-static-mesh-not-saved/98784 "2017-08-19T15:29:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon2544177](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon2544177](https://forums.unrealengine.com/u/anon2544177)\
**Post date:** [August 19, 2017, 3:29pm UTC](https://forums.unrealengine.com/t/after-relog-or-server-start-the-static-mesh-not-saved/98784/1 "2017-08-19T15:29:39Z")

</div>

Hello,

I have the problem that after relog or server start the static mesh not saved?  
Variable is checked “SaveGame”.

 ![63e955ebec98d416fd0aae1271d8cbbb6509241b.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/e/63e955ebec98d416fd0aae1271d8cbbb6509241b.jpeg)

Here can you see the function:

Please help…

Thank you.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4830ec4b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4830ec4b](https://forums.unrealengine.com/u/anonymous_user_4830ec4b)\
**Post date:** [August 20, 2017, 12:19pm UTC](https://forums.unrealengine.com/t/after-relog-or-server-start-the-static-mesh-not-saved/98784/2 "2017-08-20T12:19:36Z")

</div>

have you had it print what the variable is when it starts again (delayed a few seconds on beginplay ofc)? from what it seems, you need to get the beginplay event and set the material (if defined)

---

<div class="post-metadata">

**Author:** ![anon2544177](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon2544177](https://forums.unrealengine.com/u/anon2544177)\
**Post date:** [August 20, 2017, 1:03pm UTC](https://forums.unrealengine.com/t/after-relog-or-server-start-the-static-mesh-not-saved/98784/3 "2017-08-20T13:03:36Z")

</div>

Hi ,

thank you for the answer.  
Can you give me an example what you mean?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4830ec4b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4830ec4b](https://forums.unrealengine.com/u/anonymous_user_4830ec4b)\
**Post date:** [August 20, 2017, 3:10pm UTC](https://forums.unrealengine.com/t/after-relog-or-server-start-the-static-mesh-not-saved/98784/4 "2017-08-20T15:10:02Z")

</div>

on the items graph, have a begin play event followed by a delay (~5-10s) the printstring the variable. This will tell you if its saving the variable or not. then if it is saving, replace the printstring with the setmaterial so as soon as the server boots up it will set that material. Of course you are going to want to make sure the item has that variable set so it doesnt give a checkerboard matterial

---

<div class="post-metadata">

**Author:** ![P0k3r](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@P0k3r](https://forums.unrealengine.com/u/P0k3r)\
**Post date:** [August 23, 2017, 2:37pm UTC](https://forums.unrealengine.com/t/after-relog-or-server-start-the-static-mesh-not-saved/98784/5 "2017-08-23T14:37:54Z")

</div>

The easiest thing to do is create a repnotify that is an integer set to savegame  
Use TryMultiUse to change the variable, setup your material switching inside the rep notify function then add a call to the repnotify function on begin play.

---

<div class="post-metadata">

**Author:** ![anon2544177](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon2544177](https://forums.unrealengine.com/u/anon2544177)\
**Post date:** [August 23, 2017, 4:53pm UTC](https://forums.unrealengine.com/t/after-relog-or-server-start-the-static-mesh-not-saved/98784/6 "2017-08-23T16:53:07Z")

</div>

Hi P0k3r,  
can you make a BP example please, I have problems to visualize your comments?

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 9, 2022, 9:34pm UTC](https://forums.unrealengine.com/t/after-relog-or-server-start-the-static-mesh-not-saved/98784/7 "2022-03-09T21:34:34Z")

</div>


