Jump to content

aerandir

Members
  • Posts

    33
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by aerandir

  1. Hi all!

    I try to do a missions for EM4 but have some difficults with scripting. Can anyone help me with this?

    This is my script fail :

    ##############

    float dx, dy, dz;
    float px, py, pz;
    debris01.GetPosition(dx, dy, dz);
    injuredUnderDebris.GetPosition(px, py, pz);
    if ( Math::dist(dx,dy,dz, px, py, pz) < MIN_DEBRIS_DIST )
    {
    return false;
     }
    return true;

    #############

    (Error: Can't call GameObject::GetPosition(dx,dy,dz) in current scope)

    How can edit this for work? thanks for you comments.

×
×
  • Create New...