Go Back   Tactical Gamer > Simulation > Armed Assault > Armed Assault - Tactics, Missions and Mod Discussions


Armed Assault - Tactics, Missions and Mod Discussions Discussion about Armed Assault tactics, maps, missions and mods.

Reply
 
Thread Tools
Old 12-30-2006, 02:28 PM   #1 (permalink)
 
Turbo's Avatar
 
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
Also if I want another objective after that what do I put in the on act so it takes you to the next objective.

Any help is appreciated, been searching all morning and haven't found anything.
__________________
Turbo is offline   Reply With Quote
Old 01-17-2007, 12:59 PM   #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;
The last part was a variable I named myself - you can call it whatever (use it to determine when the mission should end). Not sure if the set thing belongs in ArmA
HulkingUnicorn is offline   Reply With Quote
Sponsored links
Old 01-21-2007, 09:52 PM   #3 (permalink)
 
Catch22's Avatar
 
Join Date: Jan 2007
Posts: 35
Re: Trigger question

Quote:
Originally Posted by Turbo View Post
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
Also if I want another objective after that what do I put in the on act so it takes you to the next objective.

Any help is appreciated, been searching all morning and haven't found anything.
I only have the OFP command reference to go on, but let me take a shot at it.

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
Now add the other buildings:
Code:
(damage (Object 234882) >= 1)&&(damage (Object 234689) >= 1)&&(damage (Object 375082) >= 1)
Does this help?
Catch22 is offline   Reply With Quote
Sponsored links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

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


All times are GMT -4. The time now is 09:00 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
©2004-2008 - Tactical Gamer - All Rights Reserved