Jump to content

Invisible ghost in Mod - Starfire Please Help Me!


Recommended Posts

Hello everyone,

I just signed up to this beautiful forum to learn about invisible ghost problem. Could you please help me to solve it? I really really really want my ghost back. I seen posts before I could not figure out about this issue. I'm using Starfire mod: https://steamcommunity.com/sharedfiles/filedetails/?id=844742409

Also uploaded: https://ufile.io/fni17

I will appreciate any comments and helps. Thanks for anything.

Regards,

Invisible Ghost

Link to comment
Share on other sites

The file you uploaded is just a modicon...

Anyway, this is how your onload, onbecameghost and onbecamehuman should look like (without any custom code, so make sure you don't just remove any of that, but that these calls are present in those functions). Replace "mycharacter_build" and "ghost_mycharacter_build" with the build-names for your mod.

local function onbecamehuman(inst)
	inst.AnimState:SetBuild("mycharacter_build")
end

local function onbecameghost(inst)
   inst.AnimState:SetBuild("ghost_mycharacter_build")
end

local function onload(inst)
	inst:ListenForEvent("ms_respawnedfromghost", onbecamehuman)
	inst:ListenForEvent("ms_becameghost", onbecameghost)

	if inst:HasTag("playerghost") then
		onbecameghost(inst)
	else
		onbecamehuman(inst)
	end
end

 

Link to comment
Share on other sites

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
 Share

×
  • Create New...