SenL Posted January 23, 2015 Share Posted January 23, 2015 (edited) I looked at the scml provided in this sample by Kleihttp://forums.kleien...73-hat-example/ 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 January 23, 2015 by SenL Link to comment https://forums.kleientertainment.com/forums/topic/49619-need-help-on-custom-hat-invisible/ Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now