ahwa Posted February 8, 2017 Share Posted February 8, 2017 BigWorld.entity(id).matrix ERROR: BigWorld.EntityIsDestroyedException: Sorry, the attribute matrix in Vehicle is no longer available as its entity no longer exists on this client. Как использовать замещенный? @ Quote Link to comment Short link Share on other sites More sharing options...
GPCracker Posted February 20, 2017 Share Posted February 20, 2017 Нельзя хранить Entity внутри модов, его всегда нужно запрашивать по ID, сразу обрабатывать и "отпускать". Для Vehicle есть такая штука как isStarted, ЕМНИП, она true когда техника видима. Перед любой операцией над техникой после BigWorld.entity(id) нужно проверять результат entity = BigWorld.entity(id) if entity is not None: # do the job @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.