Jump to content

Wolfcraft22

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Wolfcraft22's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. Hello! I am using DayZ mod and I need to fix some problems with dead player's body creation. As standard, the following code is provided: local x,y,z = getElementPosition(source) local rotX,rotY,rotZ = getElementRotation(source) local skin = getElementModel(source) local ped = createPed(skin,x,y,z,rotZ) As you can see, if I kill someone who is in the air at the moment, the body will be created in the air too. But I need to attach the"ped" to the ground "z" coordinate. As I understand correctly, the only one way to do it is to use "getGroundPosition". As wiki says, it is a client-only function. This is the function which makes player dead if he has zero blood: should I get ground position here? And how to do it correctly?
×
×
  • Create New...