OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods Beta Testing => Topic started by: myke13021 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).
-
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
-
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:
-
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