Home   Help Search Login Register  

Author Topic: another one for you  (Read 694 times)

0 Members and 1 Guest are viewing this topic.

headshot_snipe

  • Guest
another one for you
« on: 09 Apr 2003, 19:25:05 »
ok here goes:  :-\

i made a script so that when dude1 is at a certain distance from dude2, dude 2 puts his hands up. here is my script:

_cop = _this select 0
_res1 = _this select 1

#update

? (_cop Distance _res1) =< 2 : goto"restraining"

goto"update"

#restraining

_res1 switchmove"FXstandsur"

#update2

? not(alive _res1) : goto"dead"

goto"update2"

#dead

_res1 switchmove"FXstandsurdead"

exit

when i run it there is an error:

' (_cop Distance _res1) [ # ]=< 2 : goto"restraining" ' error unknown operator

is there smth wrong in this line?  ???

thx  :)

 

deaddog

  • Guest
Re:another one for you
« Reply #1 on: 09 Apr 2003, 19:38:11 »
Remove the space between the ? and (.

 ;)

deaddog

  • Guest
Re:another one for you
« Reply #2 on: 09 Apr 2003, 19:40:55 »
Also, I think it should be <=  not =<.

That's more than likely the problem.   :)

Hope this helps.

headshot_snipe

  • Guest
Re:another one for you
« Reply #3 on: 09 Apr 2003, 20:17:16 »
thanks for the replies but its a no go  :o. the same error comes up every time.

anymore ideas?  

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:another one for you
« Reply #4 on: 09 Apr 2003, 20:24:15 »
Remove the "=".

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:another one for you
« Reply #5 on: 09 Apr 2003, 21:04:52 »
use

@ _cop distance _res1 < 2
_res1 switchmove"FXstandsur"
@ not(alive _res1)
_res1 switchmove"FXstandsurdead"
exit

btw every1 - dont belive macguba

@ works da same as trigers not makes da comp slower ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

headshot_snipe

  • Guest
Re:another one for you
« Reply #6 on: 09 Apr 2003, 21:35:58 »
thanks LCD  :D, it works perfect now, and its way simpler.  ;D