L4D2 Level Design/Boss Prohibition: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added link to vscripts article)
No edit summary
Line 2: Line 2:
Add the following to a text file:
Add the following to a text file:


''
DirectorOptions <-


<pre>DirectorOptions <-
{
{
   ProhibitBosses = true
   ProhibitBosses = true
}''
}</pre>


Save the textfile with the extention '''.nut''' in the vscripts folder.
Save the textfile with the extention '''.nut''' in the vscripts folder.

Revision as of 00:58, 11 February 2010

Left4Dead 2 no longer relies on the mission.txt file to prohibit Tanks and Witches on maps. This is now done with a script file that you should place in your left4dead2/scripts/vscripts folder (you may need to add the vscripts subfolder yourself). Add the following to a text file:


DirectorOptions <-
{
   ProhibitBosses = true
}

Save the textfile with the extention .nut in the vscripts folder. In your map, place a logic_auto entity and add an output. The output should target the AI Director entity and make it fire the script by using the BeginScript action. In the parameter field, you set the name of your script (without the .nut extention)


See also