Forums Gallery Downloads LOGIN |REGISTER

how to stick an entity to another entity

Gameplay Setup, SP/MP Logic, Audio Setup, AI Logic, Entity Usage, etc.


 

ilovegamemaking
Just getting started
Just getting started
 
Posts: 92
Member since: 18.10.2011, 19:32
Location: germany
Likes: 0

how to stick an entity to another entity

Postby ilovegamemaking » 20.05.2012, 13:55

hello!
my question is: how to make throwing knife in the free sdk via flowgraph? i already have the flowgraph for throwing it, but how how can i make that the knife sticks to the first object it touched?i have tried to set the damping up to 9999 that worked, but when i throwed it to a grunt the animation stopped till the knife was away.i dont know but probably the knife must stick to the bone of the grunt?and if it so, what i must do? :)) i have seen that is possible (archery mod for free sdk) but it wasnt released now :unsure:
User avatar
ridgeline
Just getting started
Just getting started
 
Posts: 52
Member since: 13.08.2008, 14:45
Location: USA
Likes: 0

Re: how to stick an entity to another entity

Postby ridgeline » 20.05.2012, 17:09

I do not work with the FreeSDK.
I would like to see the new stuff in that SDK added to Crysis2 ModSDK.

To help you out, try placing the knife where you want it to be on the map after throwing it.
In the FG that you have, put a knife entity node, hide it at start, and unhide it after throwing the knife.
It sounds like the knife that is thrown disappears from the map after the animation.

Hope this Helps!
My Current Projects:
Demo Flight
Battle Zone
Convoy
AI Initiative Action
Cooperative Animation System
10 single player level projects are now available.
Learn CryEngine3 with Crysis2 MODSDK – Enhance your learning with FREESDK !
ilovegamemaking
Just getting started
Just getting started
 
Posts: 92
Member since: 18.10.2011, 19:32
Location: germany
Likes: 0

Re: how to stick an entity to another entity

Postby ilovegamemaking » 20.05.2012, 17:36

thank you but that isnt the problem, the problem is that when i throw the knife it dont diappear or so, but look: in that video the arrows hit the grunt and get stucked and the grunt falling down
http://www.crydev.net/viewtopic.php?f=308&p=957873#p957873
in my case the knife get stucked too but when it hits the grunt, its like the grunt get "freezed"
i mean he doesnt move anymore till i have resetted the knife
probably i have to use a constraint object? and not to set the damping to 999?
its a little bit difficult to explain that
another thing: the knife is not animated. i meant, when the grunt turn into ragdoll mode and the knife get stucked the grunt freezes
here a video:
http://youtu.be/RDF0AYT-ekw
User avatar
ridgeline
Just getting started
Just getting started
 
Posts: 52
Member since: 13.08.2008, 14:45
Location: USA
Likes: 0

Re: how to stick an entity to another entity

Postby ridgeline » 21.05.2012, 00:07

I am sorry I could not help.
Good Luck!!
My Current Projects:
Demo Flight
Battle Zone
Convoy
AI Initiative Action
Cooperative Animation System
10 single player level projects are now available.
Learn CryEngine3 with Crysis2 MODSDK – Enhance your learning with FREESDK !
User avatar
da3dsoul
Senior Developer
Senior Developer
 
Posts: 868
Member since: 16.06.2010, 11:41
Location: West Lafayette, Indiana
Likes: 0

Re: how to stick an entity to another entity

Postby da3dsoul » 21.05.2012, 07:26

It's not hard, when it hits, just use the Entity:AttachChild node.
BEWARE: Flaming aliens are generally more grumpy than normal ones.
ilovegamemaking
Just getting started
Just getting started
 
Posts: 92
Member since: 18.10.2011, 19:32
Location: germany
Likes: 0

Re: how to stick an entity to another entity

Postby ilovegamemaking » 21.05.2012, 10:59

thank you! :)) :))
but have you an example please? so how you get the object id of the object that the knife hits? ?(
User avatar
ninjakid
Just getting started
Just getting started
 
Posts: 1
Member since: 30.05.2012, 06:27
Likes: 0

Re: how to stick an entity to another entity

Postby ninjakid » 30.05.2012, 06:30

hi imnew here and i found it interesting..i agree to u da3dsoul good idea :)

___________________

“A man of courage never needs weapons like camillus, but he may need bail.”
Man Of Courage: ninjakid
Last edited by ninjakid on 02.06.2012, 07:39, edited 1 time in total.
User avatar
da3dsoul
Senior Developer
Senior Developer
 
Posts: 868
Member since: 16.06.2010, 11:41
Location: West Lafayette, Indiana
Likes: 0

Re: how to stick an entity to another entity

Postby da3dsoul » 30.05.2012, 20:33

Hmmmm... I think I'd need to make a custom flownode for that.
BEWARE: Flaming aliens are generally more grumpy than normal ones.
JasoLon
Junior Dev
Junior Dev
 
Posts: 101
Member since: 23.02.2012, 02:47
Likes: 0

Re: how to stick an entity to another entity

Postby JasoLon » 08.06.2012, 02:28

There's like a node in the Crysis subgroup that allows it. I forget exactly what it's called though.
ilovegamemaking
Just getting started
Just getting started
 
Posts: 92
Member since: 18.10.2011, 19:32
Location: germany
Likes: 0

Re: how to stick an entity to another entity

Postby ilovegamemaking » 08.06.2012, 18:52

i have tried the flownode "crysis:hitinfo" but the knife isnt a projectile, but i think the solution is to create a new bullet type and not via flowgraph so have someone an idea how that new bullet type have to look ? :)
User avatar
da3dsoul
Senior Developer
Senior Developer
 
Posts: 868
Member since: 16.06.2010, 11:41
Location: West Lafayette, Indiana
Likes: 0

Re: how to stick an entity to another entity

Postby da3dsoul » 09.06.2012, 16:29

projectile id applies to all ammo types, even those without the "Projectile" type
BEWARE: Flaming aliens are generally more grumpy than normal ones.


 
Connect and collaborate with CRYENGINE developers in the official Forums.
Visit the Gallery to share what you have created and be inspired by what others are creating with CRYENGINE.
Community