Home   Help Search Login Register  

Author Topic: Param problem  (Read 1098 times)

0 Members and 1 Guest are viewing this topic.

Offline Garcia

  • Members
  • *
  • Leeds United is the best football team...EVER!
Param problem
« on: 02 Mar 2004, 00:50:01 »
In a mission I got 2 params...and if Param2 = 2, I want some tanks to not be in game, but they won't go away. I've tried to write "Param2 == 1" in the Condition of presence field in the tanks ,that I want to be gone, box. Also tried <=, =, >=, but none works. Even made a script where I deleted them, and wrote in the init.sqs ? (param2 == 2) : [] exec "deltank.sqs", but it didn't work either...I have no idea why this won't work. The tank I want to be gone if Param2 = 1, they are gone. It's only the ones that should disapper if param2 = 2 that won't...

Garcia

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:Param problem
« Reply #1 on: 02 Mar 2004, 03:46:51 »
Maybe your problem involves the use of a local variable where you need a global variable?  It is hard to say without looking at the whole situation.

Offline Garcia

  • Members
  • *
  • Leeds United is the best football team...EVER!
Re:Param problem
« Reply #2 on: 02 Mar 2004, 08:37:23 »
well, I managed to find a solution, though, I haven't found the cause of this rather strange problem, but I worked around it and found another solution to make the mission work  :)

Garcia