Server Scripting Functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 34: Line 34:


Almost sleeping on my keyboard, sorry for making someone else having to do this, but I figured this is better than forgotting to add them. - ChrML
Almost sleeping on my keyboard, sorry for making someone else having to do this, but I figured this is better than forgotting to add them. - ChrML
** I added them all. I just need someone to do the examples (I'm not a programmer :p) and I need someone to verify that my descriptions for [[getCameraMode]] and [[setCameraMode]] are correct -- [[User:JonChappell|JonChappell]]


==Account functions==
==Account functions==

Revision as of 04:27, 2 October 2006

This page lists all the scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use Requested Functions and Events

Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. These scripting functions are non-native and require the module to be loaded in order to work.

Head over to Module functions for a list of non-native functions and modules that are available.


Important Reminder: Works in Progress

Check the main page 'works in progress' section. There are other things being developed that need feedback immediately!

Unfinished Functions

See page descriptions for directions to modify them.


Someone add pages for these script functions please:

  • string getCameraMode ( player thePlayer ) --- possible modes "player", "fixed"
  • float float float getCameraPosition ( player thePlayer )
  • float float float getCameraRotation ( player thePlayer )
  • element getCameraTarget ( player thePlayer )
  • bool setCameraMode ( player thePlayer, string mode ) --- possible modes "player", "fixed"
  • bool setCameraPosition ( player thePlayer, float x, float y, float z )
  • bool setCameraRotation ( player thePlayer, float rx, float ry, float rz )
  • bool setCameraLookAt ( player thePlayer, float x, float y, float z )
  • bool setCameraTarget ( player thePlayer, element target )

Almost sleeping on my keyboard, sorry for making someone else having to do this, but I figured this is better than forgotting to add them. - ChrML

    • I added them all. I just need someone to do the examples (I'm not a programmer :p) and I need someone to verify that my descriptions for getCameraMode and setCameraMode are correct -- JonChappell

Account functions


Audio functions


All Seeing Eye functions

Template:ASE functions

Blip functions


Camera functions


Collision shape functions


Client functions

BEFORE VERSION 1.0 :

Clothes and body functions


Element functions

Shared


Event functions

Shared



Explosion functions


Fire functions

Template:Fire functions

Input functions

Shared



Map functions


Marker functions

Shared


Object functions

Shared


Pickup functions

Shared



Player functions

Shared


Radar area functions


Scoreboard functions

Template:Scoreboard functions

Server functions


Spawnpoint functions

Template:Spawnpoint functions

SQL functions


Team functions

Shared



Text functions


Utility functions

Shared



Vehicle functions

Shared



Weapon functions

Shared



World functions

Shared


XML functions


Deprecated Functions