Page 3 of 7

Re: [ASSET] - Surprise by Leki

Posted: Tue Jan 21, 2014 10:20 pm
by germanny
Oh, i´ve exported them already to obj, fbx and collada w. textures.
I add the assets then.

*ED
You have mail, Leki.

Re: [ASSET] - Surprise by Leki

Posted: Wed Jan 22, 2014 12:34 am
by Leki
DM_Skeleton_v09

Image

Image

Re: [ASSET] - Surprise by Leki

Posted: Wed Jan 22, 2014 1:02 am
by germanny
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^^

Re: [ASSET] - Surprise by Leki

Posted: Thu Jan 23, 2014 12:06 am
by Leki
Image

Re: [ASSET] - Surprise by Leki

Posted: Thu Jan 23, 2014 12:12 am
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:

Code: Select all

	onDie = function(coffin)
		coffin:destroy()
	end,
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]

Re: [ASSET] - Surprise by Leki

Posted: Thu Jan 23, 2014 12:46 am
by Dr.Disaster
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

Posted: Thu Jan 23, 2014 1:18 am
by Diarmuid
Dr.Disaster wrote:Seems right to me. Maybe something wrong in the coffin definition so the game thinks it's not a blockage?
Probably destroy and spawn might need to be on two different frames?

Re: [ASSET] - Surprise by Leki

Posted: Thu Jan 23, 2014 2:39 am
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,
}

Re: [ASSET] - Surprise by Leki

Posted: Thu Jan 23, 2014 4:34 am
by Dr.Disaster
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

Code: Select all

onDie = function(coffin)
    return true
end,

Re: [ASSET] - Surprise by Leki

Posted: Thu Jan 23, 2014 1:16 pm
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...