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.
[LUA] How to destroy an entity and get this owner ?
Discussion in 'Rust Development' started by Jim0, Apr 6, 2015.
-
Code:
Entity.KillMessage(); or Entity.Kill(BaseNetworkable.DestroyMode.Gib);
Code:Entity:KillMessage() or Entity:Kill(BaseNetworkable.DestroyMode.Gib)
-
Thank you !
Edit title: '"get this owner"
'
And how to get this owner please ?Last edited by a moderator: Apr 6, 2015 -
-
The owner of the entity, the person who set up
-
Code:
OnItemDeployed(Deployer deployer, BaseEntity deployedentity) BasePlayer = deployer.ownerPlayerOnEntityBuilt(Planner plan, GameObject obj) BasePlayer = plan.ownerPlayer
-
Yes but how to get on EntityDamage please ?
-
-
i want to do a /destruction command for the entity owner destroy this entity
Last edited by a moderator: Apr 6, 2015 -