Hi guys.
do that for lua?Code:var Container = Entity as LootContainer;
Solved Var Container = Entity as LootContainer; for lua
Discussion in 'Rust Development' started by Sanlerus, Jun 4, 2015.
-
It should be something like this:
Code:function PLUGIN:OnEntitySpawn(entity) local container = entity:GetComponent("LootContainer") if not container then return end print(container) end
-
Thank you very much.