Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Var add up
#4
Miksu1337 Wrote:Can someone even teach me what is this "var" thing on macro. ye everybody tells me to read wiki but the wiki isn't good at all.. it wont teach me how to use it. Maybe someone can help me? Big Grin

Var are personal variables, you can use them to store custom values.

You can create a variable on this two ways:

VarSet(MyHP) Self.Health
or
MyHP:= Self.Health

This two ways create a custom variable called MyHP containing the value of Self.Health. You can access that value using this way: !MyHP!

Sample:

MyHP := Self.Health HUD.Display(My Current HP is !MyHP!)


Messages In This Thread
Var add up - by | socio | - 08-10-2011, 11:29 AM
Var add up - by Noen - 08-10-2011, 03:50 PM
Re: Var add up - by Miksu1337 - 08-11-2011, 03:24 PM
Re: Var add up - by MegaNo0body - 08-11-2011, 04:30 PM
Re: Var add up - by Miksu1337 - 08-11-2011, 05:06 PM
Re: Var add up - by MegaNo0body - 08-11-2011, 06:14 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)