Home   Help Search Login Register  

Author Topic: Mystical !?  (Read 898 times)

0 Members and 2 Guests are viewing this topic.

Dominaatori

  • Guest
Mystical !?
« on: 10 Nov 2004, 20:45:59 »
Yes well, I was wondering. When u use the IN command to check if a unit is in a vehicle then u must be able to do so you can check if a unit is NOT in a vehicle so I that is used with C++ automaticaly did like this:

me in car == FALSE

but then this error popped out: Error type bool, expected object, string etc...


Why ? ? ?

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Mystical !?
« Reply #1 on: 10 Nov 2004, 20:47:43 »
use this:

! (me in car)

:beat: *Gets Shot* :beat:

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Mystical !?
« Reply #2 on: 10 Nov 2004, 20:48:59 »
if you are in a car
?me in car

if you're not in a car
?!me in car
Not all is lost.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Mystical !?
« Reply #3 on: 10 Nov 2004, 20:49:44 »
'Ave it Ark! ;D

:beat: *Gets Shot* :beat:

Dominaatori

  • Guest
Re:Mystical !?
« Reply #4 on: 10 Nov 2004, 21:34:46 »
Hmm this is my script, doesn't work...

;Checks if Officer is in car and then orders group to Gamelogic coordinates

_Officer = _this select 0
_Car = _this select 1
_Gamelogic = _this select 2
_Me = _this select 3

#loop
!(_Officer in _Car): goto "gamelogic"
~1
goto "loop"

#gamelogic
_Officer domove getpos _Gamelogic
_Me CommandMove getpos _Gamelogic
exit

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Mystical !?
« Reply #5 on: 10 Nov 2004, 21:36:05 »
You have to put a ? in front because it's a condition (or a if statement, if youre all C++ fancy)

:beat: *Gets Shot* :beat: