What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

ActorExists in the API

Demolished

New Member
Joined
Aug 19, 2012
Messages
34
Reaction score
0
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?
 
What is the proper command for finding out if an actor exists?

(ZetaDia.Actors.GetACDById(######).IsValid) is just throwing null exception errors...
 
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.
 
Back
Top