AlexxEG Posted March 30, 2009 Share Posted March 30, 2009 I need a script to make Eat'o'tronic open AND close.If any1 wanne retex it to look "new", not that destrroyed that would be great to.ALSO :P... script for coffe brewer so it makes puri water Thanks^^ Link to comment Share on other sites More sharing options...
Cipscis Posted March 30, 2009 Share Posted March 30, 2009 The script "AutomatScript01", which is attached to the "Automat01" activator (Eat'o'tronic 3000) looks like this:scn AutomatScript01 short opened begin onActivate if opened == 0 set opened to 1 activate setDestroyed 1 endif endAs you can see, when the activator is activated a variable, "opened", is set to 1 which prevents a second activation from having any effect, and SetDestroyed is called to prevent the item from being activated again. This script has the purpose of preventing the activator from being activated multiple times, but doesn't actually cause it to be opened - that is its default activation action. I'm not sure if a closing animation exists, but you could try removing this script from the "Automat01" form to see if that allows it to be closed. Note that doing this will not allow activators that have already been activated to be activated again, as they have been marked as destroyed. A script to make an activator give out purified water when activated would be pretty trivial, just use something like this:ref rActionRef Begin OnActivate set rActionRef to GetActionRef rActionRef.AddItem WaterPurified 1 End Cipscis Link to comment Share on other sites More sharing options...
AlexxEG Posted March 31, 2009 Author Share Posted March 31, 2009 Thx^^ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.