Multiple Targets....One Objective

Go down

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

Post by dewi316 on 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 : 178
Reputation : 21
Join date : 2012-12-19

Back to top Go down

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

Post by TheGeneral on 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.


tvig0r0us wrote:Thanks to everyone that has supported and stuck with OFDR along the way. It is a great game and is largely under appreciated, but those of us that love it are happy to have others to enjoy it with.

tvig


Multiple Targets....One Objective Nst_md15
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 on 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


Multiple Targets....One Objective Nst_tv10
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 on Mon 27 Apr 2015, 11:38

seems like only yesterday you started...so what is on the horizon?


Multiple Targets....One Objective Steven13
John J. Stevens
John J. Stevens
Admin

Location : WV/PA
Points : 284
Reputation : 21
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


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