mad mapper Posted March 19, 2005 Share Posted March 19, 2005 Hello, i want to know whether it is possible to use parameters with UIscripts. For example: itemDef { name uitest text "UITEST" type ITEM_TYPE_BUTTON style WINDOW_STYLE_FILLED rect 215 0 70 32 font 2 textscale .8 textstyle 3 textalign ITEM_ALIGN_CENTER textalignx 35 textaligny 2 forecolor 1 .682 0 1 backcolor 0 0 0 0 visible 1 cvarTest "sv_running" disableCvar { "0" } action { play "sound/interface/button1.wav" ; uiScript UI_Test 2 4 } } Afterwards I want to check what value the parameters have. In this case 2 and 4. Link to comment Share on other sites More sharing options...
razorace Posted March 23, 2005 Share Posted March 23, 2005 Don't know. Check the UIScript code. Link to comment Share on other sites More sharing options...
mad mapper Posted March 27, 2005 Author Share Posted March 27, 2005 OK, i know how it works (with quotes) I am working on the following mod. The players (in one or two teams) have to defend their base against NPCs. Each player gets money when killing an NPC. The player may buy weapons, items, force powers and vehicles with this money. Each team has got an amount of lifes. When a NPC reaches the base, you lose one life. look here: http://mitglied.lycos.de/youngsolutions/shot0000.jpg Link to comment Share on other sites More sharing options...
razorace Posted March 27, 2005 Share Posted March 27, 2005 How are you getting the AI to storm the base? Link to comment Share on other sites More sharing options...
mad mapper Posted March 29, 2005 Author Share Posted March 29, 2005 I think with waypoints, or is this not possible Link to comment Share on other sites More sharing options...
razorace Posted March 29, 2005 Share Posted March 29, 2005 Not sure. Probably with scripting. The thing is that you're going to have to "motivate" the NPCs to want to storm the base. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.