Jump to content

Need help on custom hat - invisible

Recommended Posts

I looked at the scml provided in this sample by Klei



However the only image being used is "ground" png (swap_hat-3.png)

Q01: Why aren't the other 3 png files being used?

I looked at the scml files and both "ground" and "swap" are almost identical.


Also in the modmain.lua, there is this code:

AddSimPostInit( function()    local player_pos = GLOBAL.GetPlayer():GetPosition()    local hat = GLOBAL.SpawnPrefab('hat_bee_bw')    hat.Transform:SetPosition(player_pos.x, player_pos.y, player_pos.z)end) 

Q02: Is this needed? I looked at "Devon" (a character mod with custom hat - a bird) and his modmain.lua doesn't have above code.


What am I missing....


Thank you.

Edited by SenL
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

  • Create New...