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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Killing a monster ! Dying animation
stonecutter Offline
Member

Posts: 140
Threads: 17
Joined: Feb 2011
Reputation: 4
#5
RE: Killing a monster ! Dying animation

Added to the code :

PHP Code: (Select All)
for (int i 1i<=2; ++i){
        if(
GetLocalVarInt("MonsterHitCounter_"+i)==4){
             for(
int a 1a<=5; ++a){
             if(
GetEntitiesCollide("gun_target_"+i,"ScriptArea_"+a)==true){
             
FadeEnemyToSmoke("gun_target_"+ifalse);
             
CreateEntityAtArea("Test","corpse_scientist02_ragdoll.ent","ScriptArea_"+a,false);
             }
             
            } 


Now if the enemy dies ... there will be created a ragdoll at the area the enemy dies !
But you have to set a lots of ares ( around the path the enemy walks ) as you can see in the picture !

EDIT :
One new big problem to solve is ... if the enemy collides two areas at the same time it will create two ragdoll bodies...


Attached Files
.jpg   Combat.jpg (Size: 207.41 KB / Downloads: 147)

We Shall Arise - Death / Grind from Bavaria
Musicvideo : http://goo.gl/HzxvLK
Facebook : http://goo.gl/9YfYCV
Free Album : http://goo.gl/sEBW2X
(This post was last modified: 04-05-2012, 01:27 PM by stonecutter.)
04-05-2012, 12:50 PM
Find


Messages In This Thread
RE: Killing a monster ! Dying animation - by stonecutter - 04-05-2012, 12:50 PM



Users browsing this thread: 1 Guest(s)