I have a big scripting problem and I'll probabbly have more, but i'll deal with this one first. I want to know how to attach an object to a door, as in, when the object is broken the door can no longer close, it becomes locked open and until it is broken the door remains locked closed.
The object is built like any other breakable object, much like breakable terminals or generators. any ideas?
Scripting question...
- Ed the Monkey
- Vault Scion
- Posts: 202
- Joined: Thu Jun 20, 2002 6:11 am
- Location: In a vault filled with typing monkeys...
- Contact:
Scripting question...
Just one monkey in a room of infinite monkeys, typing on infinite computers, now taking an infinite coffee break.......
Okay, set the door up as being permanently locked, with an impossible (0) difficulty, and set up a trigger to toggle the OSS (Object Script State) of the door when the breakable is destroyed. I think that ought to do it.
--
Only a real artist knows the actual anatomy of the terrible, or the physiology of fear - the exact sort of lines and proportions that connect up with latent instincts or heriditary memories of fright, and the proper colour contrasts and lighting effects to stir the dormant sense of strangeness.
Only a real artist knows the actual anatomy of the terrible, or the physiology of fear - the exact sort of lines and proportions that connect up with latent instincts or heriditary memories of fright, and the proper colour contrasts and lighting effects to stir the dormant sense of strangeness.
- Jimmyjay86
- Hero of the Glowing Lands
- Posts: 2102
- Joined: Thu Apr 18, 2002 4:02 am
- Location: Wisconsin
- Contact:
- OnTheBounce
- TANSTAAFL
- Posts: 2257
- Joined: Thu Apr 18, 2002 8:39 am
- Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland
- Contact:
There's a "Lock/Unlock Door" trigger to do that.Jimmyjay86 wrote:Why doesn't the OSS work to relock the door?
BTW, you can lock doors in the open position. Basically the OSS can't be changed when a door is locked, regardless of whether or not it is closed.
OTB
"On the bounce, you apes! Do you wanna live forever?!"
- Ed the Monkey
- Vault Scion
- Posts: 202
- Joined: Thu Jun 20, 2002 6:11 am
- Location: In a vault filled with typing monkeys...
- Contact:
- OnTheBounce
- TANSTAAFL
- Posts: 2257
- Joined: Thu Apr 18, 2002 8:39 am
- Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland
- Contact:
Use a "Quantity Unit" trigger. The object will have to have a Tag Name, of course. You can then set up the trigger w/the condition either being "has 0% hp" or "less than 1/exactly 0 alive at anywhere". When the condition is fulfilled, you simply have the Action be to change the variable to whatever value you want it to be.Ed the Monkey wrote:ok.... I had everything up to the OSS. What I don't understand is how to tie a variable to the distruction of an object...
A word of advise: Be very, very, VERY careful w/variable values as more than a few bloody clumps of hair - mine included! - have ended up strewn on the floor thanks to a simply typo in one of these fields. Endocore uses numerical values for his, and simply keeps track of what each value is supposed to represent on scratch paper. You might give that a try.
Cheers,
OTB
"On the bounce, you apes! Do you wanna live forever?!"
- Ed the Monkey
- Vault Scion
- Posts: 202
- Joined: Thu Jun 20, 2002 6:11 am
- Location: In a vault filled with typing monkeys...
- Contact: