Re: Passing a varible to another entity
Posted by Joe-Bob on
Sun Dec 5th 2004 at 6:44am
Joe-Bob
member
180 posts
77 snarkmarks
Registered:
Dec 3rd 2004
As the post description reads, I have a button which tells my
math_counter to increase it's count by 1. I would like the
OutValue output to tell my logic_case entity what number it currently
reads, but I can't seem to figure out how to get an entity to
recognize another's varible.
Re: Passing a varible to another entity
Posted by itisjp on
Sun Dec 5th 2004 at 7:46am
18 posts
2 snarkmarks
Registered:
Dec 3rd 2004
Occupation: Programmer
Location: USA
I can't tell you what entity to use but you need some entity that will use dynamic memory allocation (i.e. meaning that it will get it's values during runtime instead of when you compile the map).
The math_counter description is " Holds a numeric value and performs arithmetic operations upon it. If either the minimum or maximum legal value is nonzero, OutValue will be clamped to the legal range, and the OnHitMin/OnHitMax outputs will be fired at the appropriate times. If both min and max are set to zero, no clamping is performed and only the OutValue output will be fired. "
I would try to tie the output of the math_counter to the input of the logic_relay "A message forwarder. Fires an OnTrigger output when triggered, and can be disabled to prevent forwarding outputs. Useful as an intermediary between one entity and another for turning on or off an I/O connection, or as a container for holding a set of outputs that can be triggered from multiple places" Then tie the output of the logic_relay to the logic_case entity
Re: Passing a varible to another entity
Posted by Leperous on
Sun Dec 5th 2004 at 12:24pm
Posted
2004-12-05 12:24pm
Leperous
Creator of SnarkPit!
member
3382 posts
1635 snarkmarks
Registered:
Aug 21st 2001
Occupation: Lazy student
Location: UK
Math counters don't seem to work like that... what effect are you trying to achieve?
Re: Passing a varible to another entity
Posted by iceman on
Sun Feb 20th 2005 at 2:37am
31 posts
3 snarkmarks
Registered:
Jan 26th 2005
i have a simple way that works for the mathcounter have the output "outvalue" to your logic_case with its input being "invalue" i beleve that should work