Home   Help Search Login Register  

Author Topic: ending+objectives  (Read 1334 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
ending+objectives
« on: 19 Nov 2004, 16:50:58 »
ive got a tank that needs to be destroyed to complete an objective but i cant get it to complete so i cant end the level. Ive got a trigger and in the activation field i put "this and can not move tank1" and i called the tank tank1 and thats what its got in a different mission and it wors on that can any1 help

Offline surpher

  • Members
  • *
Re:ending+objectives
« Reply #1 on: 19 Nov 2004, 17:00:12 »
Have you set the trigger type to End #whatever.

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:ending+objectives
« Reply #2 on: 19 Nov 2004, 17:25:24 »
Quote
"this and can not move tank1"
should be
Code: [Select]
this && !(canmove tank1)
Not all is lost.

Offline 456820

  • Contributing Member
  • **
Re:ending+objectives
« Reply #3 on: 19 Nov 2004, 19:47:54 »
Artak, i cant read wat it should be as its a bit small can you please re-write it a bit bigger

Offline 456820

  • Contributing Member
  • **
Re:ending+objectives
« Reply #4 on: 19 Nov 2004, 19:51:58 »
well actualy now i have put it on word and enlarged the text but i dont get how that wud work

Gooner861

  • Guest
Re:ending+objectives
« Reply #5 on: 19 Nov 2004, 20:11:47 »
Shud work, the (canmove tank1 ) bit will look to see if the tank has been totally immobilised. It shud do more than that code u put " this and can not move tank1"  ;D

Offline 456820

  • Contributing Member
  • **
Re:ending+objectives
« Reply #6 on: 19 Nov 2004, 20:13:09 »
wudnt that see if its workin so if its workin thatn the trigger is activated????????

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:ending+objectives
« Reply #7 on: 19 Nov 2004, 20:16:09 »
Let me get this straight. You have two objectives. One is to destroy or immobilize a tank. The other is to get to a specific (trigger) area. The area is defined by a (#end1) end trigger radious.

this && !(canmove tank1) in the triggers condition field will check for two things. First that the trigger has met it's conditions (for example west present). Second that the tank named as tank1 is unable to move.

this && !(canmove tank1) can also be written this AND NOT (canmove tank1)

You can't just write "this and can not move tank1". The game can't really read what you write, so you'll have to write what you want in code commands. Like this command:

canMove vehicle
Operand types:
    vehicle: Object
Type of returned value:
    Boolean
Description:
    Check if vehicle is able to move. Does not test for fuel, only dammage status is checked.

Example:
    canMove vehicle player


You probably want to read some fine tutorials from the editors depot.  ;)
Not all is lost.

Offline 456820

  • Contributing Member
  • **
Re:ending+objectives
« Reply #8 on: 19 Nov 2004, 20:17:28 »
oh now i get it but do u need the brackets

Offline El Fisho

  • Members
  • *
  • u are expecting somthing about lamas aint ya
Re:ending+objectives
« Reply #9 on: 19 Nov 2004, 20:41:34 »
oh now i get it but do u need the brackets

I doubt they'd there if you didn't ;)

Offline 456820

  • Contributing Member
  • **
Re:ending+objectives
« Reply #10 on: 19 Nov 2004, 20:42:34 »
ohh oh k thanks for ya help