Difference between revisions of "Entity:info ff script"

From Fortress Forever Wiki
Jump to navigationJump to search
m
Line 1: Line 1:
 
{{Infobox manual/Header}}
 
{{Infobox manual/Header}}
<center>The title given to this article is incorrect due to [http://en.wikipedia.org/wiki/Wikipedia:Naming_conventions_%28technical_restrictions%29 technical limitations]. The correct title is '''info_ff_script'''.</center>
+
{{Infobox mapping}}
 
==Introduction==
 
==Introduction==
An info_ff_script is a point-based scriptable entity.  If you are familiar with TFC's entities, this entity is ''somewhat'' similiar to [http://tf.valve-erc.com/kbase.php?id=1 info_tfgoals] and [http://tf.valve-erc.com/kbase.php?id=2 item_tfgoals]; however, the scriptability behind this entity makes it a great deal more flexible.
+
Info_ff_script is a point-based scriptable entity.  If you are familiar with TFC's entities, this entity is ''somewhat'' similiar to [http://tf.valve-erc.com/kbase.php?id=1 info_tfgoals] and [http://tf.valve-erc.com/kbase.php?id=2 item_tfgoals]; however, the scripting behind this entity makes it a great deal more flexible.
  
 
info_ff_script entities represent items that can affect, and be affected by players. Such items might be the flags in a CTF map, or the armor, health and ammo packs in a respawn room.
 
info_ff_script entities represent items that can affect, and be affected by players. Such items might be the flags in a CTF map, or the armor, health and ammo packs in a respawn room.
Line 9: Line 9:
 
info_ff_script's are placed in a map through Hammer just like placing any point-based entity.
 
info_ff_script's are placed in a map through Hammer just like placing any point-based entity.
  
It is important that any info_ff_script have a name. You can give it a name in Hammer. The name you choose for the entity is what is used in your map's Lua file, to make the info_ff_script entity an actual useable object in-game.
+
To make the info_ff_script entity an actual usable object in-game, it must be given a name that corresponds to an entry in your map's Lua file. The Lua script defines what the entity actually does. See [[Lua:info_ff_script]] for more information.
  
 
Example info_ff_script names are: "red_flag", "resup_pack", "blue_armor", "yellow_healthkit", etc.
 
Example info_ff_script names are: "red_flag", "resup_pack", "blue_armor", "yellow_healthkit", etc.
  
==The Flexibility - The Confusion==
 
Because info_ff_script can be used for such a wide array of purposes, the amount of ways to interact and retrieve information from them can be overwhelming. See [[Lua:info_ff_script]].
 
 
{{Infobox manual/Footer}}
 
{{Infobox manual/Footer}}
 
[[Category:Entities]]
 
[[Category:Entities]]

Revision as of 13:29, 13 April 2010


Mapping for FF
The Basics

Setting up Hammer
Getting Started With Lua
Releasing a map

FF-specific Entities

Lua location system

Map Templates
FF Lua Documentation

Entity Typing
Entity Collections

Commands
Callbacks

Introduction

Info_ff_script is a point-based scriptable entity. If you are familiar with TFC's entities, this entity is somewhat similiar to info_tfgoals and item_tfgoals; however, the scripting behind this entity makes it a great deal more flexible.

info_ff_script entities represent items that can affect, and be affected by players. Such items might be the flags in a CTF map, or the armor, health and ammo packs in a respawn room.

Using info_ff_script

info_ff_script's are placed in a map through Hammer just like placing any point-based entity.

To make the info_ff_script entity an actual usable object in-game, it must be given a name that corresponds to an entry in your map's Lua file. The Lua script defines what the entity actually does. See Lua:info_ff_script for more information.

Example info_ff_script names are: "red_flag", "resup_pack", "blue_armor", "yellow_healthkit", etc.