Jump to content
Sign in to follow this  
IKG40Razor

One more stupid question

Recommended Posts

I need some little help here. I have a unit, in it's initialisation field

this addAction ["Dance like a fool!","dance1.sqf",[],1,false,true,"","danceTime"]; this addAction ["Dance like a freak!","dance2.sqf",[],1,false,true,"","danceTime"]; this addAction ["Dance like a nut!","dance3.sqf",[],1,false,true,"","danceTime"];

But what I have to write in dance1\2\3.sqf so the action (dance) is activated only for the one, who called it.

??? playMove "ActsPercMstpSnonWnonDnon_DancingDuoIvan";

and is that possible to create 1 dance.sqf with 3 lines (3 different dances) -

playMove "ActsPercMstpSnonWnonDnon_DancingDuoIvan";
playMove "ActsPercMstpSnonWnonDnon_DancingDuoStefan"
playMove "ActsPercMstpSnonWnonDnon_DancingStefan"

and what shall I write in initialisation field of the unit then?

Share this post


Link to post
Share on other sites

Hi..

..first of all: Nice topic title.. :rolleyes:

Put in your SQF-file:

_caller = _this select 1;
_caller playMove "ActsPercMstpSnonWnonDnon_DancingDuoIvan";

In that way only the caller of the action menu entry executes the animations...

Hope it helps...

Share this post


Link to post
Share on other sites

Thank you very much, and still how about

and is that possible to create 1 dance.sqf with 3 lines (3 different dances) -

playMove "ActsPercMstpSnonWnonDnon_DancingDuoIvan";
playMove "ActsPercMstpSnonWnonDnon_DancingDuoStefan"
playMove "ActsPercMstpSnonWnonDnon_DancingStefan"

and what shall I write in initialisation field of the unit then?

Share this post


Link to post
Share on other sites
Guest

If you can not be bothered neither can we.

§21) Use descriptive thread titles

If you start a new thread, please make sure your thread title explains what you want without forcing people to read through your post first.

Thread titles such as "How in the world do I...", "Need help!" or "Will we ever see..." are anything but descriptive. We do not allow these kind of titles and threads with such titles are subject to be closed.

** locked

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×