• Mapping to lua entities
    2 replies, posted
I have a few questions I hope to have answered concerning entities created in hammer editor and then used with lua code that i really hope can be answered. [B]1)[/B] Can you define a brush entity or a point entity from a map as a type AI, anim, Vehicle? [B]2) [/B]How would you go about making a brush entity react to a use effect if it cannot be defined as type anim etc. [B]3)[/B] Is base_brush and base_point both apart of gmod or do I need to download these? (Seen in other peoples code) Thank you for any replies.
1) Certainly, you'll just have to name the lua ents the same as the map ents and they'll be spawned in their place, with the map ent's keyvalues (see Entity.KeyValue for how to use the keyvalues). 2) You'd have to do something outside of the ent (for example GM:PlayerUse). 3) They're part of gmod
Thank you, I really appreciate it mate. [B]*Edit[/B] - Still unbelievably stuck on the issue of using a brush entity from hammer as something the user could use such as a func_button which is a brush entity that is usable. If anyone could assist on this I would be more than bloody thankful.
Sorry, you need to Log In to post a reply to this thread.