Operation Flashpoint Dragon Rising OFDR Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Multiple Targets....One Objective

4 posters

Go down

Multiple Targets....One Objective Empty Multiple Targets....One Objective

Post by dewi316 Sat 21 Mar 2015, 11:21

Hi, was wondering how you make multiple targets relate to one objective, I've seen in the Editor how you attach a mission objective to a target but would like to have multiple targets to blow up! What I'm trying to avoid are the players shooting the target from 800m away and moving on to the next objective avoiding the fire fight from the guards in the town. I sort of realise the multiple targets have to be called the same thing for the target indicator to attach, hope this makes sense? cheers Dewi Smile
dewi316
dewi316
Veteran

Location : swansea
Points : 179
Reputation : 22
Join date : 2012-12-19

Back to top Go down

Multiple Targets....One Objective Empty Re: Multiple Targets....One Objective

Post by TheGeneral Tue 24 Mar 2015, 21:04

not to sure on this as its been awhile dewi!

But I'm thinking you would make the targets part of a table array attached to a variable and you would call it using the variable as well as using "If" statements. probably on a loop once inside a triggerzone too. 

Say... a timer set for 30 secs once you reach the T/zone, checking to see if a target/s is alive or not, the once all is not alive then your objctive is complete. 

Like I said its been a while, but the theory of it still hangs around.
TheGeneral
TheGeneral
Admin

Points : 780
Reputation : 35
Join date : 2012-12-15

http://maniacaldog.wix.com/keepdralive

Back to top Go down

Multiple Targets....One Objective Empty Re: Multiple Targets....One Objective

Post by tvig0r0us Tue 14 Apr 2015, 03:57

Hey you guys!

Dewi,
It depends on what the targets are. If they are soldiers or vehicles, you can put them in a group and check OFP:isAlive("groupName"). Will return false when no more members of the group are alive. Vehicles register alive until they are catastrophically destroyed.

Almost done with school!! Only a few weeks left Wink

Cheers Very Happy
tvig0r0us
tvig0r0us
Admin

Location : Nky
Points : 266
Reputation : 29
Join date : 2013-10-16

http://www.moddb.com/members/tvig0r0us

Back to top Go down

Multiple Targets....One Objective Empty Re: Multiple Targets....One Objective

Post by John J. Stevens Mon 27 Apr 2015, 11:38

seems like only yesterday you started...so what is on the horizon?
John J. Stevens
John J. Stevens
Admin

Location : WV/PA
Points : 285
Reputation : 22
Join date : 2012-12-19

Back to top Go down

Multiple Targets....One Objective Empty Re: Multiple Targets....One Objective

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum