Frictional Games Forum (read-only)
[SOLVED]Custom Water Lurker and model Bodies - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SOLVED]Custom Water Lurker and model Bodies (/thread-21584.html)

Pages: 1 2


[SOLVED]Custom Water Lurker and model Bodies - Chap - 05-23-2013

Hey guys,

So I'm trying to make a custom enemy and I've copied all the files used for the water lurker and renamed and changing the code so that it all works in the game. However I have a problem with it, I'm trying to attach a particle system to it and to do that I've made a body in the model editor to attach it to.

The problem is that as soon as I add the body to the model, the lurker stops working and in the game he can't move at all, he just stands still and doesn't do anything at all. The particles attach to him fine though and there's no errors at all. I've changed the enemy type to enemy_grunt too but that hasn't solved the issue =(

Any ideas?


RE: Custom Water Lurker and model Bodies - OriginalUsername - 05-23-2013

Have you changed the user defined variables to enemy? I'm not sure if it changed, but it might be just that.


RE: Custom Water Lurker and model Bodies - Chap - 05-23-2013

Yep, I've tried both enemy types but neither work =( when I put the body object in. Is there perhaps any other way to add particles to the model?


RE: Custom Water Lurker and model Bodies - OriginalUsername - 05-23-2013

(05-23-2013, 05:07 PM)Chap Wrote: Yep, I've tried both enemy types but neither work =( when I put the body object in. Is there perhaps any other way to add particles to the model?

Yes, place the particle wherever you want. Select your body and go to attachments. Then click attach > click your particle system(s) > done.

This should do it, I'm not sure because I've never done it before.


RE: Custom Water Lurker and model Bodies - Chap - 05-23-2013

Thanks for the response by the way. Yeah that's the method I'm using, but it seems to be the body that causes the mob to break. No idea why though. As soon as I remove the body from the model, it works again even if I just leave the particle system there.


RE: Custom Water Lurker and model Bodies - OriginalUsername - 05-23-2013

I just opened the grunt in the model editor and I noticed it doesn't have a body.
Does the particle system disappear when you don't attach it and open it in game?


RE: Custom Water Lurker and model Bodies - Chap - 05-23-2013

Yeah it basically spawns the particle at 0,0,0 in the engine so the particle spawns but it doesn't attach to the npc. As far as I know, the only way to attach a particle is to use a body but it seems I can't put one onto enemies =(


RE: Custom Water Lurker and model Bodies - OriginalUsername - 05-23-2013

I thought white night did the same thing, adding a fire particle system at water lurkers, maybe look into those..


RE: Custom Water Lurker and model Bodies - Chap - 05-23-2013

ah okay I'll check that out - Thanks Smoke =)


RE: Custom Water Lurker and model Bodies - Acies - 05-23-2013

You should not add a (in the model editor; Collision) physics body to your enemy. Just import the model with bones and all. Collision is set under the options for the enemy.

As for the particle, bind that to a bone.

As for adding particle effects to the waterlurker, one possible solution would be to import a single bone and add the particle effect to that - wheter that is viable (working) or not I do not know :]

Smoke's above suggestion ~ looking at WN seems like a good way to go.