Results 1 to 7 of 7

Thread: Q: Creating custom object interaction

  1. #1
    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)

  2. #2
    Corporal
    Join Date
    Nov 25 2001
    Location
    Cleveland, OH, USA
    Posts
    97
    Author of the Thread
    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 -

  3. #3
    Private
    Join Date
    Nov 29 2001
    Location
    Right behind you! (Made you look!)
    Posts
    8
    I did see some additional information on this very subject here at Operation Flashpoint Editing Center:

    http://www.ofpeditingcenter.com/cgi-...650300&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!


  4. #4
    Private
    Join Date
    Nov 29 2001
    Location
    Right behind you! (Made you look!)
    Posts
    8
    I did see some additional information on this very subject here at Operation Flashpoint Editing Center:

    http://www.ofpeditingcenter.com/cgi-...650300&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!


  5. #5
    Private
    Join Date
    Nov 29 2001
    Location
    Right behind you! (Made you look!)
    Posts
    8
    I did see some additional information on this very subject here at Operation Flashpoint Editing Center:

    http://www.ofpeditingcenter.com/cgi-...650300&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!


  6. #6
    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.

  7. #7
    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-bi...m=8&topic=3197

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •