PlaneShifter 0 Posted November 26, 2001 I'm trying to write some scripts to give stationary objects in the game custom actions, so that when a unit walks up to it, the action becomes available, and when the unit walks away, the action disappears. Â Sort of like how "Take Flag" pops up as an action when a unit is near a flag-pole. Â It needs to work with any unit (so the commander can order an AI unit to perform the action), and in multiplayer. I've tried a few things, and nothing has worked the way I want it to. Â I can get the target area surrounding the object to respond correctly and add the action with just the player, but I can't get it to work for any unit (and *only* the units) in the target area. If anybody knows how to do this, please help! - PlaneShifter - (Edited by PlaneShifter at 5:23 am on Nov. 27, 2001) Share this post Link to post Share on other sites
PlaneShifter 0 Posted November 27, 2001 Ok, I figured this one out myself--and it's simple! You put the "this addaction ..." command in the object's init field! And the game even only lets you perform the action while facing the object. Tre cool. Now I just need to find out if there's a way to change the max distance it lets you use the object from, and if there's a way to change the actions available specific to the unit's side and other game conditions... - PlaneShifter - Share this post Link to post Share on other sites
Jason Alaska 0 Posted November 27, 2001 I did see some additional information on this very subject here at Operation Flashpoint Editing Center: http://www.ofpeditingcenter.com/cgi-bin/YaBB/YaBB.pl?board=board_general_editing&action=display&num=1006650300&start=2 There are a half dozen other referances to addaction but the above thread is the most complete. I don't know what you have in mind but I hope it helps! Share this post Link to post Share on other sites
Jason Alaska 0 Posted November 27, 2001 I did see some additional information on this very subject here at Operation Flashpoint Editing Center: http://www.ofpeditingcenter.com/cgi-bin/YaBB/YaBB.pl?board=board_general_editing&action=display&num=1006650300&start=2 There are a half dozen other referances to addaction but the above thread is the most complete. I don't know what you have in mind but I hope it helps! Share this post Link to post Share on other sites
Jason Alaska 0 Posted November 27, 2001 I did see some additional information on this very subject here at Operation Flashpoint Editing Center: http://www.ofpeditingcenter.com/cgi-bin/YaBB/YaBB.pl?board=board_general_editing&action=display&num=1006650300&start=2 There are a half dozen other referances to addaction but the above thread is the most complete. I don't know what you have in mind but I hope it helps! Share this post Link to post Share on other sites
crashdome 3 Posted December 23, 2001 Planeshifter, Did you try adding the action to a trigger?? This idea just popped into my head and I might try this later. Perhaps if you created a trigger that did nothing... and set the size to cover whatever area, then added the action to that trigger, perhaps you can make the entire trigger area the object? Hmmm.... I'll let you know if this works. Share this post Link to post Share on other sites
crashdome 3 Posted December 23, 2001 I tried adding an action to a trigger with no success, but I did come up with a new idea for making people choose their own type of guys under their command for any mission. http://www.flashpoint1985.com/cgi-bin/ikonboard/topic.cgi?forum=8&topic=3197 Share this post Link to post Share on other sites