Jump to content
Sign in to follow this  
SaintPier

Heli won't come

Recommended Posts

Hi all,

I created a simple MP mission on Sarugao.

First we kill all east troopers in Belnuevo.

After that an east_BMP should come into town, wich we must destroy.

We must find a computer and then we're done.

Everything works with triggers.

If all east units are dead : EastKilled=true; publicvariable "EastKilled"

BMP destroyed : BMPDead=true; publicvariable "BMPDead"

Found the computer : PuterHacked=true; publicvariable "PuterHacked"

When EastKilled becomes true, the BMP should follow a waypoint with condition : EastKilled.

When all three variables are true, a helicopter comes to pick us up.

That helicopter follows waypoints. The waypoint before the one where the heli lands, has a condition : EastKilled and PuterHacked and BMPDead.

I public all variables, butt still the BMP and the Heli don't follow their waypoints as they should. When i play alone, everything works fine.

I added a debug line in a loop :

?(name player == "SaintPier"): player sidechat format ["%1 - units, %2 - EastKilled, %3 - BMPDead, %4 - PuterHacked",count list TR_CheckAlive, EastKilled, BMPDead, PuterHacked]

TR_CheckAlive is a trigger EAST - PRESENT.

Works fine. I can see the count of east units decrease, whenever one is shot.

When that count = 0, EastKilled becomes true with a trigger EAST - NOT PRESENT.

I can see with the debug line that EastKilled indeed = true.

Why is that BMP not coming?

Can anyone prevent me from pulling all my hair out? ;-)

Share this post


Link to post
Share on other sites

If someone would like to test my mission to see what the problem is, here is my URL : http://www.xs4all.nl/~stpier

The mission i talk about is 'sorrow on sarugao Act-1'

Feel free to test my other missions also.

Don't flame me please. I am a newbee with this stuff, so i need constructive criticism. ;-)

THX !

Share this post


Link to post
Share on other sites

pretty strange. I don't know if it Will change anything but you can try moving condition from marker to trigger and then synchronize trigger with waypoint. If you have trouble with understanding this, I can fix your mission using my method but well, that will take some time - been busy in RL.

Share this post


Link to post
Share on other sites

I had a look at the mission and I think I found the problem. The eventHandler "killed" is local, which means that the variable's changes won't be transfered to the clients. You should use a trigger instead of the "killed" eventHandler on the BMP's init field - Place a trigger on the map with condition: !alive BMP1 and on the activation field type: BMPDead=true; publicVariable "BMPDead". That should do the trick. :)

Edited by Rellikki

Share this post


Link to post
Share on other sites

THX for testing.

I placed a trigger to check if BMP is destroyed and removed the condition on the waypoints. It seems to work, but i have to wait untill my friends are online to test it in MP.

And for the Heli i did the same. I understand this synchronization better now.

The same problem occurred in Act-2, but i will correct that later.

Thanks dudes....;)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×