3 Replies Latest reply on Oct 18, 2009 1:21 PM by _lw

    pPropmodels = modelsUnderRay?

    greek_dude247 Level 1

      Ok, so I have a problem. I'm working on a 3d shockwave game that has objects that the player wants to collect. The player's body has a ray that shoots infront of him that can read model names. I want to be able to have the ability to remove the model the ray is reading. I trued some stuff like:


      if key pressed f then

      modelsunderray.removefromworld()

      end if

       

      I tried creating a variable called pPropModels and then said

       

      pPropModels = gWolrd.model.modelsunderray


      if key pressed f then

      pPropModels.removefromworld()

      end if

       

      So none of this worked. Any suggestions or questions that can clarify? I'm working in Director MX 2004 by the way.