Jump to content

thehankinator

Members
  • Posts

    436
  • Joined

  • Last visited

Posts posted by thehankinator

  1. I have a simple script like the one below applied to a Pivot. I've dragged my player entity into the "Target" property. When the Start function is called it prints out "target=nil". If I drag some other entity into the Target property I get something like "target=userdata: 0x04245938", which is what I was expecting when my Target is Player. Is there something special about the Player entity?

     

     

    Script.target = nil --Entity "Target"
    
    function Script:Start()
      System:Print("target="..tostring(self.target))
    end
    

  2. This is driving me crazy. I have a very simple scene with 2 objects, one is marked as hidden, the other is not. In the editor the hidden object is hidden but when I run the project both objects are visible. Apparently I cannot upload a .map file so "cant_hide.txt" will need to be renamed to .map.

     

    What am I missing for this to work?

    post-13860-0-99558600-1422226243_thumb.png

    post-13860-0-83521400-1422226252_thumb.png

    cant_hide.txt

×
×
  • Create New...