• Custom Entity Properties
    2 replies, posted
I've created my own FGD called zsw.fgd: [CODE]@include "base.fgd" @PointClass studio("models/zombie/classic.mdl") = zsw_zombie_spawn : "The place and probability of"+ " where zombies can spawn in "+ "Zombie Swarm for Garry's Mod." [ classiczombie(integer) : "Classic Zomb %" : 50 : "The probability of which classic zombies can spawn." fastzombie(integer) : "Fast Zomb %" : 25 : "The probability of which fast zombies can spawn." poisonzombie(integer) : "Poison Zomb %" : 25 : "J'ai deux poissons orange. " ][/CODE] I've placed a zsw_zombie_spawn in my map like so: [img]https://dl.dropboxusercontent.com/u/21596039/skitch.png[/img] I've created an entity with the same name in Lua, and overridden the think function to print "a". It works perfectly fine. Now how do I get the properties from the entity (classiczombie, fastzombie, poisonzombie) via lua? Thanks!
For KeyValues and Spawnflags: [url]http://wiki.garrysmod.com/page/ENTITY/KeyValue[/url] For Inputs/Outputs: [url]http://wiki.garrysmod.com/page/ENTITY/AcceptInput[/url]
[QUOTE=Robotboy655;42886694]For KeyValues and Spawnflags: [url]http://wiki.garrysmod.com/page/ENTITY/KeyValue[/url] For Inputs/Outputs: [url]http://wiki.garrysmod.com/page/ENTITY/AcceptInput[/url][/QUOTE] Thanks! I thought it was something to do with keyvalues.
Sorry, you need to Log In to post a reply to this thread.