Jump to content

josk

Members
  • Posts

    567
  • Joined

  • Last visited

Everything posted by josk

  1. good stuff, I like the crazy Ragdoll at the end.
  2. Yeah only watched a few of the tutorials but good work, I do plan on watching them all. Keep the Lua ones coming please.
  3. Dont know why nothing is showing its just a video link to you tube, one of the videos is in the Video section of this website as well. @ Aggror. A 3D lemmings type game, not thought of it that way but your right. I will start a topic for it when I next update it, thanks. @ Rick. Angry Andy when do we get to try that out?
  4. Been learning LE3 and Lua by making a game with goblins. Early stages More prgress
  5. When you save your model remember to tick Export full texture path, also export your textures as well.
  6. In the editor its the 2nd button down under File.
  7. If you give a model dynamic shadows and then use self.entity:Hide() the shadow is still cast.
  8. Copied the Shaders folder and it works, knew it was something simple, thanks. Hidden entities do cast shadows though. Had to google croc, I think I remember playing a demo, I have ended up knocking togeather a small demo level by accident just by learning Lua. I will upload after the weekend, not Croc gameplay but I think you might have inspired me.
  9. Shadows appear as squares, I would imagine something simple I need to do. Also I have a hidden entity that casts a shadow still as in the picture, possible bug.
  10. Have you gone into the model Editor to set your animation sequence or cant you see the animations in the Editor? Are your textures in a compatible format and have you generated a mat file? right click on your tex file and click generate mat. http://www.leadwerks...ing-assets-r682
  11. Sorted it, I noticed the moving platforms were set as Character controller in the properties editor. I changed this to rigid body and know it works as before. Before the update it worked with character controller.
  12. I have characters in game that step across a moving platform, after I updated and compiled through Visual Studio the characters now drop through the moving platform. Did something change with physics that could make this happen?
  13. Being able to scale your models in the editor in feet/inches or metric is great.
  14. josk

    Functions in LUA

    Sorted, studied the code bit by bit and and read the the explanation of the EnemyAttackForEachEntityInAABBDoCallback(entity,extra) by Chris Vossen in a past thread, another hurdle is overcome.
  15. Just trying to understand using functions between Scripts. Code is taken from Darkness Awaits but cut down a bit. self:AttackEnemy() is called in the goblin Script. but I get attempt to index local 'Newplayer' (a nil value) In Newplayer Script I have function Script:TakeDamage(damage) if self.Health>0 then self.Health = self.Health - damage end end in Goblin Script I have function Script:AttackEnemy(Newplayer) local entitypos = Newplayer.entity:GetPosition(true) local pos = Transform:Point(entitypos.x,entitypos.y,entitypos.z,nil,self.entity) pos = pos * self.entity:GetScale() pos.z = pos.z * -1 if pos.z>0 and pos.z<self.attackRange then if pos.z>math.abs(pos.x) then Newplayer:TakeDamage(10) end end end
  16. Just scored 240, I was in the Zone.
  17. Script.mode= "Happy,Angry,Sad,Thoughtful" --choice Tested it, I think that does it. Docs will need changing.
  18. josk

    sky box

    Thanks, that works great.
  19. Script.first = nil--Entity "first" Is that what your looking for? Where first is the name of the entity.
  20. Have tried all 3 and turning gravity off but no luck. I'm Adding force all the time, think I have this one figured out, will try to sort it out tomorrow.
  21. In a Lua script i add force to an object, I can change the amount of force but if the object slows down to a stop I cant get it to move again. as an example in the update Physics bit if self.speed ==1 then self.entity:AddForce(0,0,1.0,true) end if self.speed ==2 then self.entity:AddForce(0,0,1.5,true) end if self.speed ==3 then self.entity:AddForce(0,0,2.0,true)end so if the variable ever goes to 1, the object wont move again if you then change the variable 2 or 3. not done much with Physics so any help appreciated.
  22. I have moving environmental objects and the navmesh works fine, changing as the blocks move etc.
  23. A shortcut key like F1 would be good. Right clicking in the asset browser is fine I just have some keys on my keyboard that I want a use for.
×
×
  • Create New...