D Demolished New Member Joined Aug 19, 2012 Messages 34 Reaction score 0 May 27, 2014 #1 I'm writing a plugin and I want to use the ActorExistsAt command inside of the plugin, rather than the profile... but the command doesn't work... any solution for this?
I'm writing a plugin and I want to use the ActorExistsAt command inside of the plugin, rather than the profile... but the command doesn't work... any solution for this?
D Demolished New Member Joined Aug 19, 2012 Messages 34 Reaction score 0 May 28, 2014 #2 What is the proper command for finding out if an actor exists? (ZetaDia.Actors.GetACDById(######).IsValid) is just throwing null exception errors...
What is the proper command for finding out if an actor exists? (ZetaDia.Actors.GetACDById(######).IsValid) is just throwing null exception errors...
Nuok Community Developer Joined Jan 15, 2010 Messages 975 Reaction score 28 May 28, 2014 #3 ZetaDia.Actors.GetActorsOfType<DiaUnit>().FirstOrDefault(u => u.ActorSNO == THEIDHERE) != null Something like this, you can check the distance to a location too if you really need.
ZetaDia.Actors.GetActorsOfType<DiaUnit>().FirstOrDefault(u => u.ActorSNO == THEIDHERE) != null Something like this, you can check the distance to a location too if you really need.
D Demolished New Member Joined Aug 19, 2012 Messages 34 Reaction score 0 May 28, 2014 #4 I really appreciate this, it worked flawlessly. Up to 6B hr!