Jump to content
Sign in to follow this  
VonNexus

Problem in scripting: a strange error

Recommended Posts

Hi everyone, first of all I'm new and I really like this forum so I hope that you'll be able to help me.

I have ARMA II Combined Operation and I am attempting to make some missions in the editor. To make all more dynamic I want to use animations. To do that, I downloaded mr Clayman animation viewer, that basically shows you all the script in the game with the code. But when I write them in a trigger or in a waypoint an error is shown: it says "switchMove(or playMove) Type Any, expected Object. The same thing happens if I i write the script in the init field of a unit. I don't understand what the error means and I didn't find anything useful on the internet. So I'd really be happy if someone helps me.

Share this post


Link to post
Share on other sites
info on playmove, need to place animation inside "qoutes"

OK but they're in quotes, most of the scripts are like ["scriptinhere"]. Should I put the quotes like "["scriptsinhere]"?

I just copy and paste the script directly from the viewer into the trigger or the waypoint.However, thanks, I'll try.

Share this post


Link to post
Share on other sites

The correct syntax is given in the link for playMove above. Make sure to remove the brackets.

Share this post


Link to post
Share on other sites

How about posting the code how you used it and where you exactly placed it? Right now it is like "i tried something and it doesn't work" so the answer is clearly "you're doing 'something' wrong". What exactly is next to impossible to say as we can't look over your shoulder and see what you did.

Share this post


Link to post
Share on other sites

Nope, I found out what was wrong. Dunno why, but when I paste the animation a [ was added. Just deleted it and fixed all. Thanks for the help :)

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  

×