Jump to content

TEPA6ANT

Members
  • Content Count

    7
  • Joined

  • Last visited

Community Reputation

1 Neutral

About TEPA6ANT

  • Rank
    Newbie
  • Birthday 10/09/1997

Profile Information

  • Gender
    Male
  • Location
    Russia
  1. Yes. It works. I thought it wouldn't work. Thanks.
  2. Okay. I think I understand. But what if the light point will be outside the AABB, but light radius will reach the player?
  3. Is it possible to get information from the lighting? I need the enemy to know if the player is sitting in the dark. Without creating a script for each "light" on map. Example in the picture below
  4. I just need to output some textures in the Widget:Panel. And also on them to use special shaders.
  5. How painting texture in GUI without the use of widgets or painting texture[Texture:Load()] (not image[gui:LoadImage()]) in Widget:Panel?
  6. -=END=- AABB not see entity I copied code in: It turned out somehow so : function Script:Call(entity,extra) self.see=true System:Print("see") end function Script:UpdatePhysics() local position = self.entity:GetPosition(true) local aabb = AABB() aabb.min.x=position.x-30 aabb.min.y=position.y-30 aabb.min.z=position.z-30 aabb.max.x=position.x+30 aabb.max.y=position.y+30 aabb.max.z=position.z+30 aabb:Update() self.entity.world:ForEachEntityInAABBDo(aabb,"Call", self.entity) end But at the approach of any other object(e.g. the player) to this object, nothing happens. -=RUS=- AABB не видит объекты. Я взял код из Получилось как-то так : function Script:Call(entity,extra) self.see=true System:Print("see") end function Script:UpdatePhysics() local position = self.entity:GetPosition(true) local aabb = AABB() aabb.min.x=position.x-30 aabb.min.y=position.y-30 aabb.min.z=position.z-30 aabb.max.x=position.x+30 aabb.max.y=position.y+30 aabb.max.z=position.z+30 aabb:Update() self.entity.world:ForEachEntityInAABBDo(aabb,"Call", self.entity) end Но при подходе любого другого объекта(например, игрок) к этому объекту, ничего не происходит.
×
×
  • Create New...