Home   Help Search Login Register  

Author Topic: Animation script  (Read 1435 times)

0 Members and 1 Guest are viewing this topic.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Animation script
« Reply #15 on: 14 Jul 2004, 09:05:00 »
not alive is one of the command OFP doesn't like without brackets for some reason...

Try:

? not (alive m): goto "exit"

And see if you have any joy ;)

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Animation script
« Reply #16 on: 14 Jul 2004, 15:56:17 »
Nah Sui, it's not the brackets missing - ofp can handle that
without any brackets, but it's a question mark missing.

You even posted the correct version Sui  ;)

~S~ CD

Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Dubieman

  • Guest
Re:Animation script
« Reply #17 on: 14 Jul 2004, 19:05:43 »
Ahh okay it was the ?. It should work now and if it doesn't I'll try brackets or something else....

Thanks guys. ;)

I thought just plain not alive would work cause I've used it in condition fields before without the question mark. :P

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Animation script
« Reply #18 on: 15 Jul 2004, 08:19:40 »
Bahaha... ;D

Not enough caffinee today to be answering complicated editing questions involving question marks...

DBR_ONIX

  • Guest
Re:Animation script
« Reply #19 on: 15 Jul 2004, 13:45:33 »
If that doesn't work, you could try something like :
Code: [Select]
?(m dammage==0):ExitI, uh, think..
- Ben

DBR_ONIX

  • Guest
Re:Animation script
« Reply #20 on: 15 Jul 2004, 13:49:29 »
Code: [Select]
_m = _this select 0

#talk
m switchmove "EffectStandTalk"
~14
?trig1done: goto "arm"
;here is where I get an #error on the m part
NOT ALIVE m: goto "exit"
~0.5
m switchmove "FXCivilFoldOnesArms"
~6
?trig1done: goto "arm"
~1
m playmove "FXCivilLookback"
~5
?trig1done: goto "arm"
~1
m switchmove "FXCivilArmsAkimboL"
~8
?trig1done: goto "arm"
~0.5
m switchmove "EffectStandTalk"
~8
?trig1done: goto "arm"
~0.5
goto "talk"

#arm
m switchmove "null"
m setbehaviour "COMBAT"
exit

Just noticed something in that code....
First line : "_m = _this select 0"
Then the rest fo the code, you use the name "m"

It won't work with more than one person, unless you change all the "m"s to "_m"
::)
If it does work, I guess the person your running the script on it called "m"?

::)
- Ben