Jump to content

Recommended Posts

Heya! I need somehow to make mod, that'll be able to read gow many days each player survived, and then give him some tag. It should be like that:

if days_survived == 10 then
	inst.AddTag("SomeTag")
end

But I realy don't know how to do it. Any ideas? I can give you elegant skin, if you'll help me! :D 

  • Like 1
19 minutes ago, zUsername said:

ThePlayer.components.age.GetDisplayAgeInDays()

 

So it should look like that?

local days_survived = ThePlayer.components.age.GetDisplayAgeInDays()

right?

Edited by makar5000
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...