Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED]Custom Water Lurker and model Bodies
Chap Offline
Member

Posts: 99
Threads: 16
Joined: Jul 2012
Reputation: 2
#1
[SOLVED]Custom Water Lurker and model Bodies

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?

[Image: 20643.png]
(This post was last modified: 05-23-2013, 09:28 PM by Chap.)
05-23-2013, 04:16 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#2
RE: Custom Water Lurker and model Bodies

Have you changed the user defined variables to enemy? I'm not sure if it changed, but it might be just that.
05-23-2013, 05:03 PM
Find
Chap Offline
Member

Posts: 99
Threads: 16
Joined: Jul 2012
Reputation: 2
#3
RE: Custom Water Lurker and model Bodies

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?

[Image: 20643.png]
05-23-2013, 05:07 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#4
RE: Custom Water Lurker and model Bodies

(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.
05-23-2013, 05:38 PM
Find
Chap Offline
Member

Posts: 99
Threads: 16
Joined: Jul 2012
Reputation: 2
#5
RE: Custom Water Lurker and model Bodies

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.

[Image: 20643.png]
05-23-2013, 05:40 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#6
RE: Custom Water Lurker and model Bodies

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?
05-23-2013, 05:44 PM
Find
Chap Offline
Member

Posts: 99
Threads: 16
Joined: Jul 2012
Reputation: 2
#7
RE: Custom Water Lurker and model Bodies

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 =(

[Image: 20643.png]
05-23-2013, 06:18 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#8
RE: Custom Water Lurker and model Bodies

I thought white night did the same thing, adding a fire particle system at water lurkers, maybe look into those..
05-23-2013, 06:30 PM
Find
Chap Offline
Member

Posts: 99
Threads: 16
Joined: Jul 2012
Reputation: 2
#9
RE: Custom Water Lurker and model Bodies

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

[Image: 20643.png]
05-23-2013, 06:30 PM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#10
RE: Custom Water Lurker and model Bodies

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.

[Image: mZiYnxe.png]


05-23-2013, 07:22 PM
Find




Users browsing this thread: 1 Guest(s)