Home   Help Search Login Register  

Author Topic: PROBLEM!!!! :(  (Read 1490 times)

0 Members and 2 Guests are viewing this topic.

DarkCell

  • Guest
PROBLEM!!!! :(
« on: 25 Nov 2003, 16:41:23 »
Shitty problem again..

I made a Capture and Hold the Flag map everything works fine but..
When East/West takes a Flag and the Opponent wanna steal it back the TAKE FLAG command shows up but...
when I press it the flag comes down and Disapears!!
So there's no flag anymore to capture! but the TAKE FLAG command still shows up but no flag...
So can someone Tell me what went wrong?

so problem is:

-Flag can only be captured once but when a other team captures it back,it disapears and isn't captured :-\

so Plz Need help again!  :-[

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:PROBLEM!!!! :(
« Reply #1 on: 25 Nov 2003, 16:59:28 »
probably missing "set flagowner objnull" and / or "setflagside resistance or West or West" somewhere

or at the very least the lines arent being run

to debug, find where the flag owner is set to objnull and the flagside is reset to (resistance, east or west, depending who took the flag, or east or west whoever, and add a hint line

you should see the hint line display, then at least you know that portion of code is being run

check whether it ios being run locally on your client or on the server

eg
?(local server):
?!(local server):
?(local player):

it may be that the server is running the setflagowner objnull, or just the clients and therefore something is happening on 1 machine and not another

Those tips should help you to solve the problems
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

DarkCell

  • Guest
Re:PROBLEM!!!! :(
« Reply #2 on: 25 Nov 2003, 17:52:30 »
this is how my return Trigger looks like:


Condition: !isnull (flagOwner flag1)
on activation: [flag1] exec "return.sqs"

and this is the capture trigger Same trigger for WEST only then EAST is changed to WEST ofcourse:

Condition: (Side (FlagOwner Flag1) == EAST)
on Activation: [Flag1, EAST] exec "Capture.sqs"

and this is entered in the INIT field of the FLAG:

Init: this SetFlagTexture "white.pac"; this SetFlagSide resistance


Need more info? or is something wrong with these triggers?
 ???

Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:PROBLEM!!!! :(
« Reply #3 on: 26 Nov 2003, 16:05:04 »
the capture trigger is looking for

Condition: (Side (FlagOwner Flag1) == EAST)
eg For an East player to take Flag 1
Once this has occured it then runs the following line
on Activation: [Flag1, EAST] exec "Capture.sqs"
Which then runs the Capture.sqs, using Flag1 as _this select 0 and East as this select 1

when somebody has the flag !isnull (flagOwner flag1)
then have Flag1 run the "return.sqs"

The return sqs amongst other things needs to have the following lines somewhere in it

(Side (FlagOwner Flag1) == EAST); Flag1 SetFlagSide East
Flag1 setflagtexture "rus_vlajka.pac"  
Flag1 setFlagOwner objNull

Flag1 will be replaced in the script by whatever"XXX" is
 XXX = _this select 0 (at the start of then script)

and East will be replaced by whatever"YYY" is
 YYY= _this select 1 (at the start of then script)



these lines make the flag only takeable by a WEST player, (by setting flagside East)and also should return the flag to the pole (by using _Flag setflagowner objnull)

_flag being whatever XXX is, which will most likely have been called _flag anyway



You have a capture trigger for east players, you should also have one for West players
« Last Edit: 26 Nov 2003, 16:06:45 by Terox »
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

DarkCell

  • Guest
Re:PROBLEM!!!! :(
« Reply #4 on: 27 Nov 2003, 09:59:08 »
Terox I also got triggers for WEST but I only copied the EAST ones becease WEST look the Same only not EAST but WEST  ;)
So (SIDE) can be EAST or WEST

Condition: (Side (FlagOwner Flag1) == SIDE)
on Activation: [Flag1, SIDE] exec "Capture.sqs"

But back to my Question:

Do I have to put this in the Return Script?
And for WEST the same?
Does this need to be in the RETURN script:

(Side (FlagOwner Flag1) == EAST); Flag1 SetFlagSide East
Flag1 setflagtexture "rus_vlajka.pac"  
Flag1 setFlagOwner objNull



Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re:PROBLEM!!!! :(
« Reply #5 on: 27 Nov 2003, 19:43:14 »
well those lines need to be in the system you use somewhere
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123