Can some one help my game save

i wanted to know how to make it so when you leave you aren’t destroyed so when you come back you have your items in another unit i already got some of it down but i cant get then to spawn in the other unit

5 Likes

make player variables and use selected units

5 Likes

ty man thats so help full but i need more info on exactly how to do that pls

4 Likes

im active bla bla bla

5 Likes

are you going to relpy

5 Likes

kk u go to player types and click on the player type u want to save under the player attributes it shows player variables add a player variable probably the same name with saver at the end u want the unit to save and then in the respawn scripts add these scripts inside of the if scripts for respawn
for all units in game:
if selected unit == last triggering unit
then do: set entity attribute (attribute) of selected unit as (player variable)
else do:
and thats all!

5 Likes

i still need help i dont know how to make the if selected unit==last trigiring unit part

5 Likes

bruh instead of doing unit type comparison just do unit comparison to do selected unit stuff

5 Likes

dose this work when i laeve the game and come back

5 Likes

NOPE NOT AT ALL lol it only works for respawning units

5 Likes

f u man you a scamer you ruind every thing

5 Likes

YOU SAID THAT U NEEDED SCRIPTS FOR DYING UNITS so i ruined nothing

5 Likes

you ruind it all unless you have a way to save when you leave

5 Likes

i do u want??? cuz i kinda made my own

5 Likes

wait a sec bla bla bla bla bla

5 Likes

yes i do want pls gib to me

5 Likes

i gtg byee see you later

5 Likes

oof dang u gtg already i just showed u a meme i paid to get on the office

5 Likes

i saw it i just got back its not that good

5 Likes

im home from school now

5 Likes