Hello.
I'm using GAMEER's addon to have some resistance guys smoking a cigaret around a fire. This smoking addon requires (afaik) the lads to stand while smoking, but since they are having a relaxed night, they are sitting around the fire.
So here's what I want:
Start sitting.
After a while, stand up, smoke, sit back down.
I use this script for it, called from the units init line:
;smoking script by ponq for use with GAMEER's smoking addon
_unit = _this select 0
~0.1
#loop
~ 10 + (random 60)
;tell the sitting unit to stand up, since smoking addon requires
standing soldier
hint "opstaan"
_unit Playmove "SitDownToStand"
~4
;unit needs to feel SAFE to actually smoke.
?(behaviour _unit != "SAFE"):exit
hint "roken"
_unit playmove "GME_Smoke"
~23.5
_unit Playmove "Null"
;sit unit back down
hint "weer zitten"
_unit Playmove "Effectstandsitdown"
~4
goto "loop"
exit
The hints show me in game which phase the script is in, they read "stand up", "smoke", and "sit down" in dutch
The problem:
The lazy resistance bastards refuse to sit down after their smoke. They do continue the loop, so they are smoking a lot... but they don't do the sit down playmove.
I've used the playmove "null" to try to 'reset' the playmove stuff, didn't work.
I've tried to search the forum about this, couldn't find what I need.
Plz enlighten me, thanks.