Home / Forums / Modders Corner / Mafia Editing / Mafia mods / LUA script :script regeneration (Egor [SLM]).

LUA script :script regeneration (Egor [SLM]).

Home / Forums / Modders Corner / Mafia Editing / Mafia mods / LUA script :script regeneration (Egor [SLM]).

2 replies
14 years, 2 months ago
#7495

dim_act 1

dim_flt 1

getactiveplayer 0

 

label regen

human_getproperty 0,0, Energy

if flt[0]<100, -1, regen

wait 2000the rate of regeneration

human_getproperty 0,0, Energy

let flt[0]=flt[0]+1

human_setproperty 0,flt[0],Energy

goto regen

 

 

_________________________________________________________

 

Let me know if it worth it for me to translate those from Russian to English

at my age i have the time to do it smile.png” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>

 

or making a special page for them

14 years, 2 months ago
#8687

Nice script, I was thinking about something like that for a new project and there it is. bigwink.gif

 

That would be a killer resource to have!

 

 

(took me a while to find this, because I didn’t know mafia 1 script was a Lua script, I knew Mafia 2 was but I am done banging my head against that game.)

14 years, 2 months ago
#8689

reference:

 

i post a link with a bank of LUA script from mafia pub:

 

http]

  • You must be logged in to reply to this topic.