![]() |


|
|||||||
| Armed Assault - Tactics, Missions and Mod Discussions Discussion about Armed Assault tactics, maps, missions and mods. |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
|
Join Date: Jun 2005
Location: Mechanicsburg, PA
Age: 26
Posts: 3,931
|
Trigger question
I am in the process of making a mission where you have to destroy a few buildings then extract.
I am using this code which works fine for object 234882 but I can't figure out how to add the other two codes in 234689 and 375082 so it makes you destroy all three hangers. Code:
damage (position player nearestObject 234882) >= 1 Any help is appreciated, been searching all morning and haven't found anything.
__________________
![]() |
|
|
|
|
|
#2 (permalink) |
|
Join Date: Jan 2007
Location: Tromsø, Norway
Posts: 2
|
Re: Trigger question
Well, I haven't tried writing scripts for ArmA yet, but maybe some OFP knowledge can help.
How about: Code:
? damage (position player nearestObject 234882) >= 1 AND damage (position player nearestObject 234689) >= 1 AND damage (position player nearestObject 234882) >= 1 THEN (used in ArmA?) “1” ObjStatus “DONE” AND set objective1complete to 1; ![]() |
|
|
|
| Sponsored links | |
|
|
|
|
|
#3 (permalink) | |
|
Join Date: Jan 2007
Posts: 35
|
Re: Trigger question
Quote:
Hmm... unusual syntax you have in your code, I don't get it. Maybe you know something I don't about the nearestObject command, but I think it only returns the nearest object to a specified position (IE: player) and not an object from it's ID. Maybe you mean Object? Try this: Code:
damage (Object 234882) >= 1 Code:
(damage (Object 234882) >= 1)&&(damage (Object 234689) >= 1)&&(damage (Object 375082) >= 1) |
|
|
|
|
| Sponsored links | |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Operation Iraqi Freedom Question: | Rick_the_new_guy | The Sandbox | 28 | 08-09-2006 03:58 PM |
| map, mod, content question | roger smith | Battlefield 2 - Map & Mod Development | 2 | 07-02-2006 02:15 AM |
| Beginner (noob) with beginner question | derdmeh | Battlefield 2 - General Discussion | 25 | 05-18-2006 04:33 PM |
| A question in honor of MLK Day? | RGM-79N_GM_CUstom | The Sandbox | 8 | 01-18-2006 12:46 AM |
| AAS Mod on Private Server Question | Vodkatonic | Battlefield 2 - Tactics and Missions Discussion | 1 | 10-04-2005 10:08 PM |

