[Help] Dead Body on someone's death postion
#1

Okay, I have all of the dead body peices here:

pawn Code:
//Dead Effin Body
    CreateDynamicObject(2907, 2486.9501953125, -1666.6547851563, 12.453775405884, 0, 0, 274); //torso
    CreateDynamicObject(2905, 2487.8039550781, -1666.4931640625, 12.435198783875, 0, 26, 278); //leg
    CreateDynamicObject(2905, 2487.6899414063, -1666.8137207031, 12.460198402405, 356.68469238281, 145.93511962891, 263.75891113281); //leg
    CreateDynamicObject(2906, 2486.8684082031, -1666.4147949219, 12.417762756348, 359.30590820313, 273.93939208984, 298.02392578125); //arm
    CreateDynamicObject(2906, 2486.92578125, -1666.9643554688, 12.417762756348, 359.01071166992, 339.99688720703, 242.68936157227); //arm
My first thought was to do this to each object:
pawn Code:
Xa, Ya, Za - being death position.

CreateDynamicObject(2907, Xa, Ya, Za, 0, 0, 274); //torso
Now I'm not One-Hundred percent sure if I did this to each object if they would place in the correct assortment

(When someone dies, the dead body pieces take place laying on the ground.)

Is there any way I could make it an entire object?
Or
Could someone guide me into how I should do this?
Reply
#2

pawn Code:
CreateDynamicObject(2907, Xa, Ya, zA, 0, 0, 274); //torso
CreateDynamicObject(2905, Xa+0.85376, Ya+0.161621, Za-0.01857662, 0, 26, 278); //leg
CreateDynamicObject(2905, Xa+0.739746, Ya-0.158935, Za+0.006423, 356.68469238281, 145.93511962891, 263.75891113281); //leg
CreateDynamicObject(2906, Xa-0.081787, Ya+0.239991, Za-0.03601265, 359.30590820313, 273.93939208984, 298.02392578125); //arm
CreateDynamicObject(2906, Xa-0.024414, Ya-0.30957, Za-0.03601265, 359.01071166992, 339.99688720703, 242.68936157227); //arm
Try if it works like this. Im not sure. ^^

Cheers.
Reply
#3

Worked wonders! (well, except for the head haha)

The only thing needing change is that the body is off the ground about a foot, but i'll
fix that, thanks for the help.
Reply
#4

Okay. Just make the Z pos a little lower. This comes with trying. ^^ Have fun.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)