Home   Help Search Login Register  

Author Topic: Why can't I use this switchmove ?  (Read 906 times)

0 Members and 1 Guest are viewing this topic.

O Neil

  • Guest
Why can't I use this switchmove ?
« on: 30 Sep 2004, 22:37:31 »
Hey

This is really really annoying, I've done this before but can't work out whats wrong (I'm not a very good scripter ;) )

This is my script:

Code: [Select]
Unit1_2 Switchmove "FXStandhip"
~0

Unit1_3 Switchmove "FXToKneel"
~0

Unit1_4 Switchmove "FXToKneel"
~0

Unit1_5 Switchmove "FXToKneel"
~0

Exit
But it says INVALID NUMBER IN EXPRESSION (At the end if that helps.)

Thxs for any help

(O'Neil

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Why can't I use this switchmove ?
« Reply #1 on: 30 Sep 2004, 22:49:05 »
The error message will tell you which line of code is wrong, and also where in the line the error occured.   The # marks it.   Can you give us the whole error message?

Double check that you have the correct unit names and the spellings of the animations.

~0 doesn't do anything, take them out.
Plenty of reviewed ArmA missions for you to play

O Neil

  • Guest
Re:Why can't I use this switchmove ?
« Reply #2 on: 01 Oct 2004, 02:49:13 »
Code: [Select]
Unit1_2 Switchmove "FXStandhip"|#|': Error Invalid Number in expression
Yea, I gathered that, but I dunno what to do ;) I mean, I've never put anything after a Switchmove :S

(O'Neil

Kammak

  • Guest
Re:Why can't I use this switchmove ?
« Reply #3 on: 01 Oct 2004, 03:07:32 »
Have you double checked that both quotes are double quotes on that line?

If I type the script you have posted and run it, it works with no error.  However, if I change a quote from a double " to a single ', I then get the exact error at the exact place you are getting.


O Neil

  • Guest
Re:Why can't I use this switchmove ?
« Reply #4 on: 01 Oct 2004, 05:04:02 »
Nops,. soz, that's not the case

(O'Neil

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Why can't I use this switchmove ?
« Reply #5 on: 01 Oct 2004, 06:05:54 »
Nops,. soz, that's not the case

(O'Neil

What does that mean? Anyway, look at the first line in your code, and you'll see the quotation mark is at a funny slant compared to all the others. That kinda makes me think it isn't a quotation mark, like Kammak suggested.

Oh yeah, and why do you have zero second delays between each move? Or is that just for testing purposes?
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

O Neil

  • Guest
Re:Why can't I use this switchmove ?
« Reply #6 on: 01 Oct 2004, 07:41:50 »
Oh christ, I didn't notice that. Feeling stupid now ;) Soz ;)

Thxs fr the help guys.

(O'Neil