Editing Entity (section) From Quake Wiki Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits. Anti-spam check. Do not fill this in! ===Key/Value Pairs=== A key/value pair is the name given to a single entity parameter; The key is the name of the parameter and the value is what it is set to. For example, a [[func_door]] entity has a parameter that sets how fast it moves. The key is named "speed" and it's value can be set by the user to alter the speed of the door. For the purposes of this wiki, we will use the format (key : value) as notation for key/value pairs in text passages. (speed : 100) means the speed parameter of the door is set to 100 [[unit|units]] per second. Note that sometimes the naming of keys is not particularly intuitive, so some editors hide the real key name and show the user something more easily understood. The names used in the wiki are the actual key names used by Quake, and are correct. ====Origin and Angle==== Origin and angle are keys supported by every single entity with the exception of the [[worldspawn]], since it does not ever move and does not need them. Origin is used to define the position of an entity in the level, and angle is a value between 0 and 360 that sets its rotation. Both of these keys are usually hidden from direct editing by level editors; origin is almost always set only by moving the object around in the editor, and some editors (such as [[TrenchBroom]]) allow direct rotation of the entity to set the angle, wheras others (such as [[Worldcraft]]) have some kind of visual representation in their entity property editing tool as well as the ability to manually set the angle numerically. Some entities may support setting angle to up or down by using the values -1 for up and -2 for down. Other entities, such is [[info_intermission]] might require a more complex angle. This can often be specified with a [[mangle]] key. ====Targetname, Target and Killtarget==== Quake features a very basic form of event scripting via triggers that can be placed in levels and used to activate other entities. For example, the [[func_button]] entity is used to make a usable button object in a level which will trigger a targeted event when pressed. This event system is not limited to the obvious trigger entities and buttons - monsters can fire events when they are killed, and items when they are picked up. In order to use this system, the keys targetname and target must be understood. The '''targetname''' key is used to establish a name for an entity so that it can be linked to triggers that are targeting it. The value of targetname needn't be unique, though multiple entities using the same targetname will all be activated at once by anything that triggers them. The value of '''target''' should be set to the targetname of the entity that needs to be activated. For example. a [[func_door]] with (targetname : door1) can be activated by a func_button with (target : door1). '''killtarget''' is a key used in a similar way to target, but instead of activating the target, the targeted entity will be removed from the level when the killtarget event is fired. In [[Vanilla Quake|vanilla Quake]], a single trigger cannot target multiple entities another at the same time. This is true even if one entity is targeted and another is killtargeted. In order to do this, multiple triggers (see [[trigger_relay]]) must be used for each different target or killtarget. Some [[mod|mods]], such as [[Quoth]] support multi-targeting, which allows multiple targets to be set for a single trigger, and also enables targets and killtargets to both be fired when the trigger is triggered. Summary: Please note that all contributions to Quake Wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see Quake Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here. You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission! To edit this page, please answer the question that appears below (more info): Who created the Quake Soundtrack (Hint: In three uppercase letters)? Cancel | Editing help (opens in new window) Retrieved from "http://quakewiki.org/wiki/Entity"