Hi.
i got this problem and i cant seem the figure it out..
this * Garage * has 2 doors
Door 1 : Opens Via a targetfinder
Door 2 : Via a timer
Target2 : the one wich makes the Door 2 Open.
* The scans 1&2 are two no collided props wich scan the people.. just for effect.. they dont work either cause it works with a timer to. wich doesnt seem to work.
if you see in the e2...
my timer should activate my second door.. * And Scan1&2
but it does not..
and i cant figure it out.
########################################################
@name garage_door
@inputs Target1 Target2 Speedo1 Speedo2
@outputs Door1 Door2 Scan1 Scan2
@persist
@trigger
#[ Speed of the Speedo ]#
Speed1 = inrange(Speedo1 +1 ,0,1)
Speed2 = inrange(Speedo1 +1 ,2,20)
Speed3 = inrange(Speedo2 +1 ,0,1)
Speed4 = inrange(Speedo2 +1 ,2,20)
#[ This is Door1 * Works via TargetFinder * ]#
if (Target1>=1) {Door1 = 0 } else {Door1 = 90}
if (Target2>=1) {timer("Succes1",3000)}
if (changed(Speed2) & Speed2) {soundPlay(0,4,"ambient/machines/wall_ambient1.wav")}
if (changed(Speed1) & Speed1) {soundPlay(1,0,"ambient/machines/combine_shield_loop3.wav") soundVolume(0,0.9) }
#[ This is the ScanRoom * Works via Timer * ]#
if (clk("Succes1")) {Scan1 = 0 } else { Scan1 = 90 }
if (clk("Succes1")) {timer("Succes2",5000)}
if (clk("Succes2")) {soundPlay(1,0,"vo/aperture_ai/00_part1_entry-3.wav")}
if (clk("Succes2")) {timer("Succes3",5000)}
#[ This is Door2 * Works Via a Timer * ]#
if (clk("Succes3")) {Door2 = 0 } else {Door2 = 90}
if (changed(Speed4) & Speed4) {soundPlay(0,4,"ambient/machines/wall_ambient1.wav")}
if (changed(Speed3) & Speed3) {soundPlay(1,0,"ambient/machines/combine_shield_loop3.wav") soundVolume(0,0.9) }
if (clk("Succes3")) {timer("Reset",1000)}
#[ Simple Reset ]#
if (clk("Reset")) { reset() }
########################################################
i hope this helps you to understand....
* Btw.. there used to be a special topic for e2 right ? or am i wrong ?
I think this should be in help and support, or am i wrong?
I am not following at all. Try to comment more. For instance, what effect does Door1=90 have?
You can try the wiremod forum. [url]www.wiremod.com[/url]
Sign up, find the forums, then the e2 subforum. Re-post this there. Also, use [ code ][/ code ] tags. Remove the spaces.
[editline]1st February 2011[/editline]
Oops, code tags behaved strange.
[editline]1st February 2011[/editline]
Fix'd
Sorry, you need to Log In to post a reply to this thread.