Jump to content
Sign in to follow this  
manny

Make mission fail by shooting targets out of order

Recommended Posts

Hi,

i created a training mission, where you are a Spatznaz rookie & a officer tells you what to do.

1. The officer tells you this line, "So you wanna be a spatznaz? pickup your weapon from the ammocrate and follow me." I already remove all the weapons from my soldier and put an ak74su in a crate.

PROBLEM: Here is, the officer already walk to his waypoint while talking. He should finish his line & then start running to the waypoint which is outsite of the camp where are 3 targets to shoot. How i do this guys?

2. Now outsite the camp, you ready to shoot the 3 targets. But you must shoot them from left to right. I created 3 triggers with not alive. I named my targets " t1,t2 & t3, so i created 3 triggers with the not alive line.

PROBLEM: It doesn't matter what target you shoot 1st, the game always finds it correct. I want that my officer tells something like this "Shooting targets out of order, you gonna have a bad time" and that the mission is failed. How i do this guys?

3. After that you still not done yet, you must shoot another 3 targets but with a Sniperrifle. So you pick that up from another ammocrate and move to your shooting position. The officer should stay this time in his place and communicate with you via radio. The targets are in a forest so it isn't at easy at the 1st time. actually i don't care here if you shoot the targets without order.

PROBLEM: How do i let the officer stay in his place and tell me what to do over the Radio?

Share this post


Link to post
Share on other sites

1. You could create 2 waypoints, the first is for talking, the second one is right on it, but has an activation time of a few seconds, so he can finish his line.

2. You can solve this with the conditions; "!(alive t2) and (alive t1)" should tell the trigger that number 2 is dead while 1 is still alive, you can use that to achieve the desired effect.

3. From there you can simply use triggers that have something like this in their activation field: OfficerName sideChat "Shoot some people, will you?"

Share this post


Link to post
Share on other sites
1. You could create 2 waypoints, the first is for talking, the second one is right on it, but has an activation time of a few seconds, so he can finish his line.

2. You can solve this with the conditions; "!(alive t2) and (alive t1)" should tell the trigger that number 2 is dead while 1 is still alive, you can use that to achieve the desired effect.

3. From there you can simply use triggers that have something like this in their activation field: OfficerName sideChat "Shoot some people, will you?"

1. well i created 2 waypoints but i dunno exactly what to do there is a countdown or whatever.

2. Only worked if i destroy the 2nd target first but not with the 3rd target. i also never so a comman like !(alive) completly new to me.

3. Worked pretty well, but it say that the message is from "Black-Bravo." Is there to change the name?

Share this post


Link to post
Share on other sites

1. In the first waypoint, just enter the text you want him to say, in the second, nothing, just the number of seconds you want him to wait in the "timeout" fields (min, mid, max)

2. This should fire off once anything is shot out of order: "(!(alive t3) and (alive t2)) or (!(alive t2) and (alive t1))" -> the "!" is simply a shortened "not"

3. That might be a problem, you can assign him other letters and colors ( http://community.bistudio.com/wiki/setGroupId ), but changing the name isn't possible. Unless you use something like this: [west,"HQ"] sideChat "Hey!" - but there's only Papa_Bear, I think it's possible to create new names with addons, though.

Share this post


Link to post
Share on other sites
1. In the first waypoint, just enter the text you want him to say, in the second, nothing, just the number of seconds you want him to wait in the "timeout" fields (min, mid, max)

2. This should fire off once anything is shot out of order: "(!(alive t3) and (alive t2)) or (!(alive t2) and (alive t1))" -> the "!" is simply a shortened "not"

3. That might be a problem, you can assign him other letters and colors ( http://community.bistudio.com/wiki/setGroupId ), but changing the name isn't possible. Unless you use something like this: [west,"HQ"] sideChat "Hey!" - but there's only Papa_Bear, I think it's possible to create new names with addons, though.

1. well i enter in the fields min max and max basicly ever number there is but it doesn't matter, he still runs immediately after i start the mission.

2. well still only works with the 2nd targte but now even worse then before. he wants to load the fail trigger but then loads that trigger that i destoryed the target in order.

EDIT: Strange result, sometimes it works perfects then again what i wrote above.

3. okay it sucks but i can live with it. :)

Edited by manny

Share this post


Link to post
Share on other sites

This is most strange... I'll wrap up a little demo mission and I'll send you the link, because it works fine here.

---------- Post added at 23:49 ---------- Previous post was at 23:43 ----------

And here we go: https://dl.dropboxusercontent.com/u/102863946/_targetTest.Intro.rar

This contains the officer waiting, coming to the player, talking, then running off again, and also the trigger which reacts to something being shot out of order.

Share this post


Link to post
Share on other sites
This is most strange... I'll wrap up a little demo mission and I'll send you the link, because it works fine here.

---------- Post added at 23:49 ---------- Previous post was at 23:43 ----------

And here we go: https://dl.dropboxusercontent.com/u/102863946/_targetTest.Intro.rar

This contains the officer waiting, coming to the player, talking, then running off again, and also the trigger which reacts to something being shot out of order.

Alright thanks for the Demo! really helped to understand the Waypoints more (i hope).

Anyway i still got the problem with target shot out of order. I think i might know why, i got overall 4 triggers by the targets.

I got 3 triggers which activate a message like "good T1 down now shoot T2. T2 destroyed now hit the last one. Great you destroyed all 3 targets now pickup the sniperrifle.

If i shoot now now out of order it loads the fail trigger but right after it, it loads the normal 1. but for some reason only if i try to shoot target 3 1st, if i shoot target 2 1st it works.

If i delete the triggers and only got the fail trigger left, it works perfect. but it must be possibly to have those other 3 triggers as well working.

guess i should upload my mission.

Share this post


Link to post
Share on other sites

Ah, I see the issue. The triggers for the targets that work have to make sure the wrong ones haven't been shot yet. So, for the first target "!(alive t1) and (alive t2) and (alive t3)", for the second ""!(alive t1) and !(alive t2) and (alive t3)" and for the third""!(alive t1) and !(alive !t2) and !(alive t3)"

Share this post


Link to post
Share on other sites
Ah, I see the issue. The triggers for the targets that work have to make sure the wrong ones haven't been shot yet. So, for the first target "!(alive t1) and (alive t2) and (alive t3)", for the second ""!(alive t1) and !(alive t2) and (alive t3)" and for the third""!(alive t1) and !(alive !t2) and !(alive t3)"

great, everything work now!!! I hope i can finsih the mission now.

thanks man. :)

Share this post


Link to post
Share on other sites

Hey Lenyoga,

looks like i need you again. :(

The problems you fixed for me, "just" was the 1st task of my super realistic Spatznaz training. For the 2nd Task you have to pickup a sniperrifel, and shoot another 3 targets hidden in the woods.

Targets are setup and the triggers seems to work too. Here it isn't important in what order you shoot them, the task is to find them.

PROBLEMS: After you shoot the 1st 3 targets your officer tells you this exact line: "Alright, now for our next task, you need the Sniperrifel from the ammocrate. I will stay here and communicate with you via Radio."

1. The text just fits on the screen & it looks ugly. In the officials campaigns & single mission i see a lot of word wraps or line break (Zeilenumbruch) so that more text fits on the screen. How i do it?

2. You guessed it, after that, your training isn't done yet. But this time your officer must move again a couples of 100 meters. ofcourse, he didn't does it after i wasted the 3 hidden targets, he does it right after he reached the 1st waypoint. How can i do it, that he waits until i completed task 2?

3. Task 3 is, that your officer introduce you, to the commander and reports that you just finsih your training. The command is if you believe it or not Angelina and yes the problem is not how to put here into the game i know that. :P She wants to know your name & congrats you that you finish you training and that you ready to go. After this chat, 1 of her bodyguards (total of 2) should escort you & officer to a chopper in a UAZ which stays besides of us. Ofcourse that all should start after the chat and not at the same time, i hope it is kinda understandble what i want. And i would be nice if the chat & the drive to the chopper is a cutscene.

Sorry Lenyoga i guess it isn't easy but i got now clue & bad english as well. i still thanks for all you did so far.

Share this post


Link to post
Share on other sites

No problem, and the English works fine (I can do German, too, if this works better)

1. There's an easy solution to this: "Line 1 \n Line2"

2. You can have conditions for waypoints too, like for triggers - just add "!(alive NameOfLastTarget)" in the waypoint (the soldier will walk to it, but effects like radio messages or text will only be triggered when the target is shot)

3. The third one might require a bit of scripting, and also camera scripting, which will get messy, so the best way to start that off would be a tutorial http://ofp.toadlife.net/downloads/tutorials/scripting_guide/scripting.htm

- for the non-camera parts of the script, it's mostly timers, waypoints and maybe some animations.

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  

×