Go Back   Codemasters Forums > Action, RPG and Strategy Games > Operation Flashpoint: Dragon Rising > English > Operation Flashpoint: Dragon Rising - Mission Editing and Modding Chat Zone
Sign In
Register on CodeM

Operation Flashpoint: Dragon Rising - Mission Editing and Modding Chat Zone A little area for all you mission editors and modders to chat and discuss ideas.

Reply
 
LinkBack Thread Tools Display Modes
Old 10-11-2009, 11:52 AM   #1 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 21
Default Objective complete when character picks up a certain item

Hey Guys and Gals, first of all i would like to thank everyone for their posts in this forum, i have sucesfully created two complex missions so far, mainly due to the people in this forum that helped others with their problems and that is really awesome!

Now i got a sticky one for all of you, and i personally cant see a way to do this but it would be awesome if it could happen.

What i want to happen is: the playable character picks up a pistol from a dead character which causes an objective to be completed. If that cant be done even if they pick up their equipment or their ammo. Its mainly the playable character takes the item/s from the dead character which causes the script to recognise that they first have the item and then seconed causes the objective to be completed.

Any ideas or cant it be done?
War_Witch is offline   Reply With Quote
Old 10-11-2009, 11:59 AM   #2 (permalink)
Member
 
Join Date: Oct 2009
Posts: 85
Default

Quote:
Originally Posted by War_Witch View Post
Hey Guys and Gals, first of all i would like to thank everyone for their posts in this forum, i have sucesfully created two complex missions so far, mainly due to the people in this forum that helped others with their problems and that is really awesome!

Now i got a sticky one for all of you, and i personally cant see a way to do this but it would be awesome if it could happen.

What i want to happen is: the playable character picks up a pistol from a dead character which causes an objective to be completed. If that cant be done even if they pick up their equipment or their ammo. Its mainly the playable character takes the item/s from the dead character which causes the script to recognise that they first have the item and then seconed causes the objective to be completed.

Any ideas or cant it be done?
Interesting concept

But not too sure if can be done..but could be wrong

the only things I can think of using is these:

Code:
OFP:getUnitCategory()
OFP:getLeader()

Last edited by Wolf_holic; 10-11-2009 at 12:03 PM.
Wolf_holic is offline   Reply With Quote
Old 10-11-2009, 12:13 PM   #3 (permalink)
Senior Member
 
TemplarGFX's Avatar
 
Join Date: Oct 2009
Posts: 2,141
Default

the closest document command to make this possible is :

OFP:getAmmoCount(unitName);

even then using this effectively to do what you want would be very tricky
__________________
Island War - Free Roam Download Release Candidate here
The ENTIRE Island is at your feet! Explore, conquer, have fun! COOP with up to 3 friends!
----------------------------------------
Island War - Operation White Fang
Help your Company capture the White Fang Complex against EXTREME ODDS
----------------------------------------
Templar's Completely Awesome Entity Database
Real Muzzle Velocity, Rate Of Fire, Effective Range, Recoil. Better Aimed Position. No zooming on sights!
TemplarGFX is offline   Reply With Quote
Old 10-11-2009, 01:01 PM   #4 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 21
Default

interesting idea, ill try it on a simple map and let you know
War_Witch is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On



All times are GMT. The time now is 07:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.