1) I have created a custom model (based on the wall lanterns), but I'm having some texture wrapping issues as you can see below.
The texture mapping is set to "Wrap" (i believe it only repeats the texture 3 times). How can i get it to cover the entire model, or is the error in the model itself?
2) I am not sure what the coding is to add the light property to the object. Current object definition is attached below.
SpoilerShow
Code: Select all
defineObject{
name = "hand_lantern",
baseObject = "base_item",
components = {
{
class = "Model",
model = "mod_assets/models/sx_lantern.fbx",
},
{
class ="Item",
uiName = "Lantern",
gfxAtlas = "mod_assets/textures/items_atlas.dds",
gfxIndex = 0,
gfxIndexPowerAttack = 1,
secondaryAction = "Fire_Blast",
impactSound = "impact_blade",
weight = 1.5,
traits = { "item" },
description = "An old oil lantern.",
},
{
class = "MeleeAttack",
attackPower = 5,
accuracy = 5,
--attackSound = "swipe_bow",
cooldown = 2.0,
baseDamageStat = "strength",
damageType = "physical",
},
{
class = "CastSpell",
name = "Fire_Blast",
uiName = "Fire Blast",
spell = "fireburst",
repeatCount = 0,
cooldown = 6,
energyCost = 30,
},
},
editorIcon = 24,
}
Thanks for your help
