Main Page » Scripting


Revision as of 17:25, 18 February 2009
Gcamp (Talk | contribs)

← Previous diff
Revision as of 15:40, 21 February 2009
Gcamp (Talk | contribs)

Next diff →
Line 1: Line 1:
-'''Scripting'''+=Scripting=
 + 
 +==Introduction==
Scorched 3D supports the use of scripts to both enhance the engine and to create new and funky weapons. Scripting support was introduced in Scorched3D version 42. Scorched 3D supports the use of scripts to both enhance the engine and to create new and funky weapons. Scripting support was introduced in Scorched3D version 42.

Revision as of 15:40, 21 February 2009

Scripting

Introduction

Scorched 3D supports the use of scripts to both enhance the engine and to create new and funky weapons. Scripting support was introduced in Scorched3D version 42.

Scripts are written in the LUA scripting language. Scorched3D adds some new functions and structures to LUA so the script can interact with the scorched engine. For example these functions allow you to fire a weapon or send a message to other players.

Scripting is useful when you want to perform actions based on complex decisions, or simply when an alternative is not available via the XML configuration files. For example you may want to find all the players in a given team and give them some money, or kill all players below a certain amount of health. Scripting makes all of this possible.

Donate to Scorched3D Get it from CNET Download.com! 5 Stars