Ghost_starved Posted February 19, 2021 Share Posted February 19, 2021 (edited) локальная функция 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 February 19, 2021 by Ghost_starved Link to comment Share on other sites More sharing options...
TemporarySolutn Posted February 20, 2021 Share Posted February 20, 2021 did you just run all of your code through google translator Link to comment Share on other sites More sharing options...
Wonderlarr Posted February 20, 2021 Share Posted February 20, 2021 (переведено гуглом) К сожалению, вы не можете надежно использовать онлайн-переводчики для программирования, вам придется учить английский, чтобы делать что-то правильно большую часть времени. Link to comment Share on other sites More sharing options...
Ghost_starved Posted February 28, 2021 Author Share Posted February 28, 2021 I don't know why my code is in Russian here... maybe I accidentally copied it from another post, but Google translator translated it and I did not notice Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now