Jump to content
Sign in to follow this  
Tarantul_A

Special MP Question (client exec trigger / heli has landed)

Recommended Posts

Hello guys,

I´ve got some special questions about MP related things I´d like to become reallized in my Mission.

I was searching the web and the Forum about it, found a couple solutions but at all not those I´d really need.

so my questions:

1.) How can I become a trigger gets executed by a certain client only...if this is basically possible. I´d need that for a Textmessage which sould appear for that client only.

I´ve tried a playerrelated Syntax like

player!=Name:exit

But since I am a totally scripting noob, I´ve really no idea how to use that properly.

2.) Is it possible to check whether a Helicopter (any classes) has been touched down on the ground? I´d need that may be to become a hint.

Any answers are apreciated...If some questions have already been asked and I havent found them for certain reasons (wrong keyword etc.) so I am sorry.

Tarantul_A

Share this post


Link to post
Share on other sites

1)

if (player == unitName) then {
// blah
};

2) Can you explain this, if you're in a situation where you have helicopters but have no idea what or where they are, there's probably a problem in your mission. :) What exactly are you trying to do?

Share this post


Link to post
Share on other sites

Hello Kylania

Thanks for your reply.

I am about to built a helicopter training Mission for our Squadron. One part of that Training parcours is to fly through a defined zone which will kill you if you dont leave it early enough (time pressure). But to pass this test its necessry to land (touch the ground) and lift off again to leave that zone. But it´s dificult to check (unless the Instructor is beeing right within the Cockpit) whether the Student Pilot has properly pass the test.

I´ve some good piloting skills but unfortunately a noob in scripting...

Because of this:

if (player == unitName) then {
// blah
};

This is part of a script (sqf) isn´t it? Or is it pssoible to work within a trigger it self (condition and OnActivation Line?

Thanks for your help..

Tarantul_A

Share this post


Link to post
Share on other sites

Here's a demo mission showing some of these ideas.

For multiplayer you'd probably want to put the reset course onto an addAction for the instructor, along with the heal bird command. Also publicVariable the booleans. :)

Share this post


Link to post
Share on other sites

thank you very much for your help, I will try it out and will leave a comment after testing.

Thanks

Share this post


Link to post
Share on other sites

Let me know what you think. Working on a better version of this tomorrow, with different types of landings (courtyard, rooftop and under powerlines) as well as selectable helicopters and MPness. Shame the Merlin is so.. big, making rooftop landings a bit difficult. :)

Share this post


Link to post
Share on other sites
Let me know what you think. Working on a better version of this tomorrow, with different types of landings (courtyard, rooftop and under powerlines) as well as selectable helicopters and MPness. Shame the Merlin is so.. big, making rooftop landings a bit difficult. :)

But its fun to land on the Oil Silos on the nothern base...:)

The demomission you made seemed to be working to my needs, as far as I can say that, Thank you. But I havent tested pretty much though (had to go to work today morning).

Thanks for your work you put in there.

cya

Share this post


Link to post
Share on other sites

Tested it out more than once...I somehow got to say that I can use it...somehow. The only things bothered me...is it really needed to group every single trigger with a vehicle, to become the trigger executed just by that single vehicle? Isnt there a more common way to do that?

Share this post


Link to post
Share on other sites

Actually, no. In my newer version at home it's set to react to whatever vehicle the testPilot is in. This way you can spawn a new chopper or type of chopper and it'll work.

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  

×