RemoveEntity() public method

Removes an entity from this Virtual Machine.
public RemoveEntity ( FSO.SimAntics.VMEntity entity ) : void
entity FSO.SimAntics.VMEntity The entity to remove.
return void
Ejemplo n.º 1
0
 public void RemoveObjectInstance(VMEntity target)
 {
     target.PrePositionChange(this);
     if (!target.GhostImage)
     {
         VM.RemoveEntity(target);
     }
     if (UseWorld)
     {
         if (target is VMGameObject)
         {
             Blueprint.RemoveObject((ObjectComponent)target.WorldUI);
         }
         else
         {
             Blueprint.RemoveAvatar((AvatarComponent)target.WorldUI);
         }
     }
 }