Jump to content
Sign in to follow this  
Morts

Addaction to change stance

Recommended Posts

Hiya guys, just a quick question.

I'm trying a script that will make a man go prone when the addaction is used.

Script:

_hvt = _this select 0;
[_hvt] setunitPos "low"

Init:

act = this addaction ["GetDown!","down.sqf"]

Unfortunately, this doesn't work, anyone have any ideas. Help much appreciated :)

Share this post


Link to post
Share on other sites

Ah okay, I see where i'm wrong there, but also, I didn't mention that the addaction isn't working, but thanks for pointing that out too :P

Share this post


Link to post
Share on other sites

setUnitPos takes an object, not an array. Take _hvt out of brackets.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×