1. Please how to destroy an entity and get this owner in LUA ?

    I already did a search on the forum, the wiki and I find no plugin that might contain unique the snippet of code.
     
    Last edited by a moderator: Apr 6, 2015
  2. Code:
    Entity.KillMessage();
    or
    Entity.Kill(BaseNetworkable.DestroyMode.Gib);
    [DOUBLEPOST=1428333008][/DOUBLEPOST]Lua:
    Code:
    Entity:KillMessage()
    or
    Entity:Kill(BaseNetworkable.DestroyMode.Gib)
    
     
  3. Thank you !

    Edit title: '"get this owner"
    '
    And how to get this owner please ?
     
    Last edited by a moderator: Apr 6, 2015
  4. Owner? What do you wanna do? Describe .
     
  5. The owner of the entity, the person who set up
     
  6. Code:
    OnItemDeployed(Deployer deployer, BaseEntity deployedentity)
    BasePlayer = deployer.ownerPlayerOnEntityBuilt(Planner plan, GameObject obj)
    BasePlayer = plan.ownerPlayer
     
  7. Yes but how to get on EntityDamage please ?
     
  8. Can you describe in more detail the plugin that you want to do?
     
  9. i want to do a /destruction command for the entity owner destroy this entity
     
    Last edited by a moderator: Apr 6, 2015