Jump to content

Need little help


Recommended Posts

локальная функция friendsFOREVER (inst)

local pt = inst: GetPosition ()
local range = 10
local hps = 6
местных друзей = {"wilson"}

    local target = TheSim: FindEntities (pt.x, pt.y, pt.z, range, friends)
        для _, ent в ipairs (цели) do
            inst.components.sanity: DoDelta (hps)        
        end          
end

локальная функция BFFs (inst),
     если не inst.components.health:IsDead (), а не inst: HasTag ("playerghost"), then                
        friendsFOREVER (inst)    
    end
end

 

Где тут ошибка

 

и это 

local toim = 2
    inst: DoPeriodicTask (toim, BFFs, nil, inst)

Где тут ошибка

Edited by Ghost_starved
Link to comment
Share on other sites

(переведено гуглом)
К сожалению, вы не можете надежно использовать онлайн-переводчики для программирования, вам придется учить английский, чтобы делать что-то правильно большую часть времени.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...