• FGD self entity
    6 replies, posted
i made a fgd fgd: [lua] @MoveClass base(Item, Targetname) studio("models/editor/playerstart.mdl") cylinder(255 255 0, targetname, capturepoint, radius, targetname, targetname, radius) = Team_Spawn : "Team spawn for Capture Point" [ capturepoint(target_destination) : "Capture Point" : : "Name of the Capture Point" ] [/lua] cylinder: [lua] cylinder(255 255 0, targetname, capturepoint, radius, targetname, targetname, radius) [/lua] it only makes a line when i put a name on this entity in hammer editor. is it possible to "self" the entity instead of targetname? [lua] cylinder(255 255 0, self, capturepoint, radius, self, self, radius) [/lua] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [URL="https://developer.valvesoftware.com/wiki/FGD"]https://developer.valvesoftware.com/wiki/FGD[/URL] • line( color, start_key, start_value, end_key, end_value ) - Draws a line between two entities. The value properties in this entity give the names to look for in the key property on other entities. key is usually set to targetname. The color sets the color of the line when the entity is not selected. The second entity defaults to this one if not set. • cylinder( color, start_key, start_name, start_radius, end_key, end_value, end_radius ) - Draw a cylinder between two entities. This is similar to line(), but with the addition of two radius properties that are looked up on the target entities. These define the size of the start and end of the cylinder.
no one has experience in fgd?
i would try asking in the mapping section; you're bound to get help there
[url]https://developer.valvesoftware.com/wiki/Targetname[/url] Didn't take too long to look up, it seems that !self targets itself if used as a targetname. There's a few other !-specials listed there too.
thanks for replies :) i ask here because its code i tried [lua] cylinder(255 255 0, !self, capturepoint, radius, !self, !self, radius) [/lua] didnt made a line [lua] cylinder(255 255 0, !self, capturepoint, radius, !self, !self, radius) [/lua] but this still work (but need a name) [lua] cylinder(255 255 0, targetname, capturepoint, radius, targetname, targetname, radius) [/lua] so !self is not working in this command, damn it :D
Have you tried putting it in quotes "!self"
same result
Sorry, you need to Log In to post a reply to this thread.