Home   Help Search Login Register  

Author Topic: Lock Mapfact Baracken addon Gate  (Read 2191 times)

0 Members and 1 Guest are viewing this topic.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Lock Mapfact Baracken addon Gate
« on: 21 Aug 2006, 20:41:44 »
Is there a way to lock the iron gates of Mapfact's Baracken addon so only selected person's (it's enough if it recognizes unit's side i.e. West)?

I tried it with the "lock" command but it doesn't work with this (already thought it wouldn't work but better to try before asking).

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re: Lock Mapfact Baracken addon Gate
« Reply #1 on: 03 Sep 2006, 03:27:24 »
To open doors and streetpoles:


this animate ["Component02", 1/0]


*note 1/0 stands for either 1 or 0 while it was not pointed out exactly which value stands for open
and which one for close*


Beton Hangar:


this animate ["TorL", 1/0]

this animate ["TorR", 1/0]



Open/close doors of buildings:


this animate ["Component02", 1/0]

until

this animate ["Component15", 1/0]


*the number of Components depends off course on the number of doors available for the building*



For wrp-placed buildings (those buildings already the island not placed by mission editor) you simply
need to replace this with object number
*object number you find on the map when enabling id's and zooming in closer*


Open/close doors of the big Hangar:

(object NUMMER) exec "\Baracken\Hangar01.sqs"


hope this helps

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Lock Mapfact Baracken addon Gate
« Reply #2 on: 03 Sep 2006, 12:24:33 »
I'm probably incorrect but the gate opens from an action somewhere right? Also I understand you want to stop certain people using this action right?

You could depbo the addon and find the name of the action and maybe try a removeaction script to stop people using it. The script could check the players side, and if its the side you want then the action is not removed, if it isnt the side you want to open the gate then you could removeaction the action from where it is.
Chances of that working is smalll.. but might work  :scratch:

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re: Lock Mapfact Baracken addon Gate
« Reply #3 on: 03 Sep 2006, 14:44:23 »
aha i see - forgive me my blindness  :-[

Due to the lock command you were trying i came on the thinking that you're after the correct commands
and on some way i've overseen the real intension of your post.

The action will not have a name but an index Jason.
However, i failed in trying to remove the action from a wrp-placed
object on Mapfact Nogova.

I doubt it is possible what you're after myke, but i can't guarantee it:  :)

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted