Jump to content

dennis

Members
  • Posts

    469
  • Joined

  • Last visited

Posts posted by dennis

  1. I think your quote there is for items submitted to the workshop for sale. ie models and textures not games.

     

    I'd still wait for Josh to reply just to be sure.

    It certainly is. Games made with leadwerks (according to the official EULA) are Royalty free.

    Sold workshop items are not accounted for in the EULA, so you have to pay for the use of the system.

  2. As a guess, maybe check the entity has a script exists before you access something on it?

     

    Some entities coming back are probably not the ones you want to look at and may not have scripts.

    Entities next to it (between the radius of 10) are my character and another object with that value. I am not getting why it wouldn't work.

    I can't really return the values using System:Print() because we can't print tables to the system. So I don't know what is returned

     

    I tried another value in the same script, but it is still a Nil value.

    So I guess the:

     

    for e=0, #entities do
    end
    

    isn't working.

  3. I'd use GetEntityNeighbors() function in Scripts/Functions/GetEntityNeighbors.lua.

     

    You could do something like:

    local radius = 10
    local entities = GetEntityNeighbors(self.entity, radius, true)
    
    for e=0, #entities do
    if entities[e].script.health ~= nil then
    --deal damage
    end
    end
    

     

    Won't work for me, it gave me: 119 : attempt to index a nil value.

  4. Hi all,

     

    I was wondering how I can get any entity in the world with a certain variable inside such as "health"?

    This is because I am making a script with exploding stuff in it. but when something near it with the health variable, it has to get the same amount of damage too.

     

    Thanks in common.

  5. Well this is perfect haha.

    Thanks for your help ! :D Will login later today on my PC, problem is I ain't got very much time, Have to built a gaming pc for some budy of mine. But before that I will certainly check the code you wrote :o. Wouldn't be cool If I didn't right? ;)

    I wish you all the luck with your exams :D

    • Upvote 1
  6. Awesome!

     

    Still at work too, got ten more minutes to survive.

    But will check that out and Like to see that sprite.

    But what if you just attach the script to a regular sprite object in the editor ?

    That way it just will work right ?

    • Upvote 1
×
×
  • Create New...