Jump to content

Recommended Posts

Hey,

I know it can be done using ClassPostConstruct, but I want to know if the same can be done inside your character's prefab.

Using this line in console (and setting it to client), I'm able to hide the badge:

ThePlayer.HUD.controls.status.heart:Hide()

But I can't figure how to achieve the same inside my prefab. I've tried both common and master (who knows) post inits. Also, doing like:

if not TheWorld.ismastersim then
	inst.HUD.controls.status.heart:Hide()
end

doesn't work either. No crashes, but no hidings tho.

Thanks in advance!

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...