Revision history[back]
5
No.4 Revision
updated2010-07-27 23:44:20.580967
5

changing the state of an entity?

I'm working on a script to auto-close doors. I would just use triggers in the map, but with a trigger-delay it will also OPEN a door if it was closed manually. So my question is how do you change the state of an entity (func-dynwall) in lua? Is it possible? Is there some other way to make the door close? Or how to activate a trigger_use in script?

All I have been able to find is getting the state of the entity, but not how to set it. Any advice would be much appreciated.

Thanks

Edit: To answer my own question. It Ok, so it is not possible. The best route to take for this is to use trigger_delay as usual and control weather the delay is triggered or not based on the state of the door.Thanks eTarPu!

4
answered
updated2010-07-27 14:19:54.103241
5

changing the state of an entity?

I'm working on a script to auto-close doors. I would just use triggers in the map, but with a trigger-delay it will also OPEN a door if it was closed manually. So my question is how do you change the state of an entity (func-dynwall) in lua? Is it possible? Is there some other way to make the door close? Or how to activate a trigger_use in script?

All I have been able to find is getting the state of the entity, but not how to set it. Any advice would be much appreciated.

Thanks

Edit: To answer my own question. It is not possible. The best route to take for this is to use trigger_delay as usual and control weather the delay is triggered or not based on the state of the door.

3
No.2 Revision
updated2010-07-27 04:55:18.626814
5

changing the state of an entity?

I'm working on a script to auto-close doors. I would just use triggers in the map, but with a trigger-delay it will also OPEN a door if it was closed manually. So my question is how do you change the state of an entity (func-dynwall) in lua? Is it possible? Is there some other way to make the door close? Or how to activate a trigger_use in script?

All I have been able to find is getting the state of the entity, but not how to set it. Any advice would be much appreciated.

Thanks, VaiNThanks

2
No.1 Revision
updated2010-07-26 10:05:03.505444
5

changing the state of an entity?

I'm working on a script to auto-close doors. I would just use triggers in the map, but with a trigger-delay it will also OPEN a door if it was closed manually. So my question is how do you change the state of an entity (func-dynwall) in lua? Is it possible? Is there some other way to make the door close? Or how to activate a trigger_use in script?

All I have been able to find is getting the state of the entity, but not how to set it. Any advice would be much appreciated.

Thanks, VaiN

1
asked2010-07-26 10:04:38.754952
5

changing the state of an entity?

I'm working on a script to auto-close doors. I would just use triggers in the map, but with a trigger-delay it will also OPEN a door if it was closed manually. So my question is how do you change the state of an entity (func-dynwall) in lua? Is it possible? Is there some other way to make the door close? Or how to activate a trigger_use in script?

All I have been able to find is getting the state of the entity, but not how to set it. Any advice would be much appreciated.

Thanks

Edit: Ok, so it is possible. Thanks eTarPu!

Made with Django.