Home   Help Search Login Register  

Author Topic: Opening Gates as Objects  (Read 552 times)

0 Members and 1 Guest are viewing this topic.

Kilo11

  • Guest
Opening Gates as Objects
« on: 24 May 2005, 23:08:23 »
I was wondering how I would open a gate/barrikade (the red and white ones with the stop sign) that is already on the map.
 
I have tired multiple ways and command and scripts, and none were successful.  Anyhelp in being able to open and close these gates would be usefu.  Some info you may want:

ISLAND: FDF East Border
OBJECT: 21595
?COMMAND?: This Animate ["gateanim",0] & This Animate ["gateanim",1]

dan ick

  • Guest
Re:Opening Gates as Objects
« Reply #1 on: 24 May 2005, 23:21:21 »
 ;DHi

To open gate: objectid animate ["keppi", 1]
To close it again use: objectid animate ["keppi", 0]
The ID is a number which can be revealed by pressing the "show ids" button in editor.
Zoom close and you'll see the lot of numbers. Just find the gate arm and note the number of it.

Put this in the ON ACTIVATION field of a trigger.
(object 21595) animate ["keppi",0]


To automatically open gates use following trigger:
Activation set to "Repeatedly"
Trigger name (this must be of course unique): trigger1
On Activation: (nearestObject [trigger1, "FDFrajapuomi"]) animate ["keppi", 1]
On Deactivation: (nearestObject [trigger1, "FDFrajapuomi"]) animate ["keppi", 0]


Hope this helps

Dan :P
« Last Edit: 24 May 2005, 23:31:49 by dan ick »

Kilo11

  • Guest
Re:Opening Gates as Objects
« Reply #2 on: 24 May 2005, 23:47:40 »
Worked like a charm :-) Thanks!