Looking for ETW lua pre-defined functions in the game. I heard there is a list of functions that modders can use to mod.
Looking for ETW lua pre-defined functions in the game. I heard there is a list of functions that modders can use to mod.
Well well well I don't think the title is accuracy enough.![]()
My bad. I was going to put the title this instead:
Looking for ETW lua pre-defined functions in the game. I heard there is a list of functions that modders can use to mod. For the fact that such a list would help me and other modders mod the game, via scripting as much as possible because a full list of pre-defined functions would be a sort of "reference-sheet" for scripting in ETW. ETW, the greatest TW game to-date, considering its scope and the work done by modding teams. I love pizza! OJ Simpson did do it.
LUA functions from CA.
Be careful, some of them only work with NTW.
Hello Wangrin,
i would like to use one of the functions listed in the scripting.txt file:
Command: set_zoom_limit
Description: Limit the max camera angle. The higher the number the lower the camera.
Usage: set_zoom_limit(max_radian_from_vertical, min_radian_from_vertical)
Author:
I would like to use this function in the Empire: Total War grand campaign mode to force the human player to be able to lower the campaign camera only to a certain level.
I don't want to see the grand campaign strenghtbar above buildings and units - i noticed, that it could be seen only from a certain distance (i want to limit the possibility of zoom-in to a set range above campaign map).
Is this possible change to implement? How i could get this function to work in the grand campaign?
Thank You in advance for any help
==================================================================================
EDIT: I figured it out, i changed one value in the scripting.lua file from data/campaigns/main folder.
I set max_radian_from_vertical from 1,0 (default) to 0,9. Now there is no strenghtbar visible above land and naval units. Campaign textures and models are still big enough to be seen on the campaign map.
Thank You very much Wangrin for the attached informations about LUA functions, +REP![]()
Last edited by p.jakub88; January 26, 2014 at 04:59 PM.
Remember of the Alamo!