Frictional Games Forum (read-only)

Full Version: [SOLVED]Custom Water Lurker and model Bodies
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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?
Have you changed the user defined variables to enemy? I'm not sure if it changed, but it might be just that.
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?
(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.
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.
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?
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 =(
I thought white night did the same thing, adding a fire particle system at water lurkers, maybe look into those..
ah okay I'll check that out - Thanks Smoke =)
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.
Pages: 1 2