Jump to content

Home

Parameters of UIScript


mad mapper

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...