[ASSET] - DM SKELETON RAISING FROM COFFIN
Re: [ASSET] - Surprise by Leki
Oh, i´ve exported them already to obj, fbx and collada w. textures.
I add the assets then.
*ED
You have mail, Leki.
I add the assets then.
*ED
You have mail, Leki.
Dungeon Master Resource Pack worker and passionated Beer drinker
Re: [ASSET] - Surprise by Leki
Just awesome! I´d prefer green eyes.. xD
And you may add a bit of color shininess to the eyes by set specular to under color - it looks like you have^^
And you may add a bit of color shininess to the eyes by set specular to under color - it looks like you have^^
Dungeon Master Resource Pack worker and passionated Beer drinker
Re: [ASSET] - Surprise by Leki
Guys, I need script for onDie hook to destroy blockade, otherwise it shows script warning that monster is spawned in invalid spawn location.
Can you solve it for me? Smth like:
It crashes whole time, doesn't matter if I use findEntity etc... Maybe I am tired a little bit so I have typo here - no idea[/color]
Can you solve it for me? Smth like:
Code: Select all
onDie = function(coffin)
coffin:destroy()
end,
I'm the Gate I'm the Key.
Dawn of Lore
Dawn of Lore
- Dr.Disaster
- Posts: 2876
- Joined: Wed Aug 15, 2012 11:48 am
Re: [ASSET] - Surprise by Leki
Seems right to me. Maybe something wrong in the coffin definition so the game thinks it's not a blockage?
Re: [ASSET] - Surprise by Leki
Probably destroy and spawn might need to be on two different frames?Dr.Disaster wrote:Seems right to me. Maybe something wrong in the coffin definition so the game thinks it's not a blockage?
Re: [ASSET] - Surprise by Leki
Code: Select all
defineObject{
name = "dm_coffin_skeleton_undead",
class = "Blockage",
model = "path/model.fbx",
brokenModel = "path/model.fbx",
placement = "floor",
health = 1,
evasion = -1000,
hitSound = "barrel_hit",
hitEffect = "hit_wood",
editorIcon = 56,
onDie = function(coffin)
coffin:destroy() -- crash here
spawn("dm_skeleton_sword_shield_i_live_again", coffin.level, coffin.x, coffin.y, coffin.facing) --if I remove destroy() line, it gives console warning about invalid location of skeleton (but game is ok, because there is destroyed coffin model.
-- here I need one more line to set aiState of spawned monster to guard
end,
}
I'm the Gate I'm the Key.
Dawn of Lore
Dawn of Lore
- Dr.Disaster
- Posts: 2876
- Joined: Wed Aug 15, 2012 11:48 am
Re: [ASSET] - Surprise by Leki
I wonder if the onDie hook does an implizit destroy() by itself.
For example i haven't seen germanny use it for his destroyable doors/walls.
What happens when you do
For example i haven't seen germanny use it for his destroyable doors/walls.
What happens when you do
Code: Select all
onDie = function(coffin)
return true
end,
Re: [ASSET] - Surprise by Leki
Hmm... I tried all and I have no idea what else I can try...
You can destroy the blockage from ingame script (steping to the plate e.g) but if there is blockage:destroy() in OnDie or OnDamage hook in object definition, it crashes...
You can destroy the blockage from ingame script (steping to the plate e.g) but if there is blockage:destroy() in OnDie or OnDamage hook in object definition, it crashes...
I'm the Gate I'm the Key.
Dawn of Lore
Dawn of Lore