Members Online»
0 Active | 105 Guests
Online:
|
LATEST FORUM THREADS»
by StrYdeR
Posts: 3 / 163 The Future of MODSonline
In The News by KAZAM3766
Posts: 1 / 516 CoD: Battle Royale
CoD+UO Map + Mod Releases by morgawr
Posts: 1 / 2587 Damaged .pk3's
CoD Mapping by lazygit
Posts: 1 / 3100 heli to attack ai
CoD4 SP Mapping by DrBiggzz
Posts: 11 / 992 New Cod UO Rifle Mod.
CoD Mapping |
Polls»
|
Lua Scripting
To access Lua for your mission you first have to place a script object on the game world.
There are two ways to access the script, firstly you will see that it has added an extra tab on top of the Map object, or by clicking on the Level script entity on the map and then in the Lua Script properties click on the Edit Script button as shown below the Map Editor tabs.
Lua scripts are organised in to sections called functions, which reference a particular event in the game. You can write functions that can cover a wide range of gameplay mechanics, for instance defining what happens when the player has destroyed a target, or entered a particular zone.
Functions can be called before the start of the mission, using a timer, on the press of a button or in a number of other ways.
A typical function and its format can be seen in the Figure below.
The function destroys a specific vehicle, which in this case is a vehicle called “destlav00”. This will cause the vehicle to be totally destroyed in the same way as if it had been hit by heavy munitions such as artillery. It will also cause damage to those who are nearby. This function is called when the mission is first started (onMissionStart).
Latest Syndicated News»
Comments: 5
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which... Comments: 5
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ... Comments: 5
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead?
... Comments: 5
Codutility.com up and runn...
It seems to me the like the site is completely dead? Comments: 5
Codutility.com up and runn...
Yeeaahhhh.........
|
Latest Downloads»
OHMY Don Quixote
Call of Duty 2: Maps: Multiplayer (5.76Mb) OHMY Neuburg
Call of Duty 2: Maps: Multiplayer (6.84Mb) OHMY Tebessa
Call of Duty 2: Maps: Multiplayer (7.36Mb) OHMY POW Camp
Call of Duty 2: Maps: Multiplayer (2.15Mb) OHMY Valley
Call of Duty 2: Maps: Multiplayer (5.7Mb) |
Partners & Friends»
|
Site Links and Information
|
Partners
|
Friends
|
Copyright © MODSonline LLC
Tresware Content Management System © 2011
Website Designed by LKFX and Developed by Tresware