Multiple Targets....One Objective
4 posters
Operation Flashpoint Dragon Rising OFDR Forums :: OPERATION FLASHPOINT: DRAGON RISING :: OFDR EDITING
Page 1 of 1
Multiple Targets....One Objective
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](https://2img.net/i/fa/i/smiles/icon_smile.gif)
![Smile](https://2img.net/i/fa/i/smiles/icon_smile.gif)
dewi316- Veteran
- Location : swansea
Points : 179
Reputation : 22
Join date : 2012-12-19
Re: Multiple Targets....One Objective
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.
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.
Re: Multiple Targets....One Objective
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](https://2img.net/i/fa/i/smiles/icon_wink.gif)
Cheers![Very Happy](https://2img.net/i/fa/i/smiles/icon_biggrin.png)
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](https://2img.net/i/fa/i/smiles/icon_wink.gif)
Cheers
![Very Happy](https://2img.net/i/fa/i/smiles/icon_biggrin.png)
Re: Multiple Targets....One Objective
seems like only yesterday you started...so what is on the horizon?
John J. Stevens- Admin
- Location : WV/PA
Points : 285
Reputation : 22
Join date : 2012-12-19
Operation Flashpoint Dragon Rising OFDR Forums :: OPERATION FLASHPOINT: DRAGON RISING :: OFDR EDITING
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|