Yue Posted May 24 Posted May 24 The idea is how I implement in json the parameter to pass an entity, a light, a door, the idea is to create a component that turns lights on or off, that can open and close doors Quote Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
Solution Dreikblack Posted May 24 Solution Posted May 24 In json { "name": "target", "label": "Target", "value": null } In Load() for Lua it's probably something like: if type(properties["target"]) == "string" then target = scene:GetEntity(properties["target"]) end In editor drag'n'drop entity from Scene tab to component field or choose it by clicking on field Quote Check out Slipgate Tactics demo, which is made with Ultra Engine: https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/
Yue Posted May 24 Author Posted May 24 Quote Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.