Home   Help Search Login Register  

Author Topic: Opening/closing doors  (Read 1011 times)

0 Members and 1 Guest are viewing this topic.

Offline Kronzky

  • Members
  • *
    • My OFP/VBS Scripts/Missions/Addons
Opening/closing doors
« on: 25 Sep 2002, 17:39:24 »
Has anybody figured out how to operate doors in Resistance?

I want either some unit to operate it, or just change its status (open/closed) via script. Any method would be fine.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Opening/closing doors
« Reply #1 on: 25 Sep 2002, 17:47:02 »
uuum, as far as I can recall it's som'n about.... uuuum... ( ::) :P ) lets seeeeuuuum,

howsabout :  ObjectName Animate ["Door", "open"]

  :beat: Don't hang me for this, I really can't remember. But I know there are
a few ADDONS out, using this anim. so maybe try & grab/de-pbo & read
all about those things. That is if ya can't find the proper command.  :-\ :)

Offline Kronzky

  • Members
  • *
    • My OFP/VBS Scripts/Missions/Addons
Re:Opening/closing doors
« Reply #2 on: 26 Sep 2002, 06:01:19 »
I probably didn't make myself very clear - (I was afraid this would happen...)

I don't really care about animation or anything like that.
Alll I want to is to open or close a door via a sript.

e.g. A building may start out with an open door. But I would like this door to be closed when the player actually gets to it.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Opening/closing doors
« Reply #3 on: 27 Sep 2002, 19:08:33 »
 :D Yeah man, and thus I repeat:

 To close a door, ya need some INIT trigger/script giving the command
ObjectName Animate ["Door", "close/open"] (in this case it's "close").

Now, as I don't know the EXACT spell, I gave my highest bet which would be
find, open/de-pbo & check one of the addons that use this command  :o hm?!  :)
That way you'll get to KNOW the proper syntax and then be able to use it  :thumbsup:

So get on with it, m8 - grab an addon, try the KKB-gateArm or alike!  :-*

Then you'll know the spell, and then you'll be able to USE it  :wow:

I guess it would look like this ( or close to ) :

Bob action ["Open Doors", Object ID#]

...in a WP placed right in front of the house.
And if there's no such syntax, at least ya can SIMULATE
Bob opening the door by letting him do some "playmove" anim.
while a trigger/wp fires with the spell (which I dunno but assume looks like this) :

 ObjectName Animate ["Door", "open"]

(you NEED the "animation" stuff, so don't say that ya don't care about it, m8  ::) )

Allright?!  :afro:




 
« Last Edit: 27 Sep 2002, 19:09:47 by Tomb »