Sorry for silly request, and sorry for my broken English.
But I want to make the time longer that while get drunk.
Or if the state while get drunk could turn on and off, it will be the best.
Can anybody help me?
You mean drunk time when went from bar?
<pre class="ipsCode">game.hud:EffectAlcoholDrunk(100)</pre>
And effect that displays when you are drinking
<pre class="ipsCode">game.hud:EffectAlcoholHit()</pre>
That's it!! It works!!
Really thank you for your kindness and knowledge!!
this command is here
http] (//forum/22-existenz34-s-mods/6490-mafia-ii-lua-command)
Thank you eXistenZ34, for your work and help!
I will study by using this
You can also use this style of walking
Quotegame.game:GetActivePlayer():SetAnimStyle("common","DrunkHomeless")
and to return to the normal
Quotegame.game:GetActivePlayer():SetAnimStyle("common","default")
ExistenZ
Could you write some more animation types? Like walking wounded and other? I can't find a list of them.
jaca37
All these styles are in "ingame"
can be used with an injector
p=game.game:GetActivePlayer()
DelayBuffer:Insert(function(l_1_0)return p:SetAnimStyle("common","????")end,{l_1_0},100,1,false)
????
<div class="ipsSpoiler_header">
default
Injury
ManColdWeapon
Camelot
ManReadingNewspaper
CarryBox
WalkTorchCivil
PrisonerWalkHandcuffs
WalkNoggingRightHand
AngeloRifle
GalanteSneaking
ManHandsFolded
FatMan
ManNewspaperSubaxillary
ManHandsInPockets
ManOneHandInPocket
ManSlowWalk
Homeless
OldMan
ManQuickWalk
ManBigSuitcase
WomanHeel
WomanHeelQuick
WomanHeelSlow
WomanHeelHandbag
OldWoman
WalkWithShovel
PrisonerBallSubaxillary
PrisonerDribling
PrisonerClothCrotch
ManUmbrellaOpen
ManUmbrellaClosed
ManBigBag
ManWalkHotdog
WalkCoughCanal
WomanUmbrellaOpen
WomanUmbrellaClosed
HomelessHotdog
VitoCleaningWindow
GuardBatonLaxQuick
GuardBatonKnockQuick
GuardBatonKnockSlow
GuardBatonBack
GuardBatonLaxSlow
PrisonerWalkHandDown
PrisonerFoppishWalk
PrisonerHandsFolded
PrisonerHandsAkimbo
WalkTorchNormal
ManWashingPowder
ManNoggin
ManBag
ManBagAndNoggin
WomanNoggin
ManPushCartCloths
ManPullClothsRack
DrunkHomeless
Drunk
WalkInSewer
ManHandsUp
WomanHandsUp
GangsterShopping
Hasis
PrisonerWalkHandcuffs2
WalkNPCEmptyNoggin
WalkNPCFullNoggin
JoeThrashed
WorkerBag
RelaxGangsterCigarette
SlowWalkGangster
SlowWalkPrisoner
ButcherWithHam
WalkTalking
GuardSlowWalkA
GuardSlowWalkB
HenrySneakA
HenrySneakB
ManWinterCrossHands
ManWinterHandsDown
ManWinterHoldingCoat
ManWinterHandsPockets
WomanWinterHandsJoined
WomanWinterCrossHands
WomanWinterHandCollar
WomanWinterHandbag
GuardWalkQuick
</div>
eXistenZ34, so much appreciation for you
and excuse me, I have one more question.
these 2 types of lua command can be combined into 1 F* key?
like the on or off switch.
I have to separate these lua command using 2 F* key?
like F1 is activate and F2 is disable.
Use this one for single F-key:
Quoteif i==nil then i=1
game.game:GetActivePlayer():SetAnimStyle("common","DrunkHomeless")
else
i=nil
game.game:GetActivePlayer():SetAnimStyle("common","default") end
Thank you jaca37!
This is very useful script!
Im going to learn little by little.