Passing a varible to another entity
Post Reply
Quote
Re: Passing a varible to another entity
Posted by Joe-Bob on Sun Dec 5th at 6:44am 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.




Quote
Re: Passing a varible to another entity
Posted by itisjp on Sun Dec 5th at 7:46am 2004


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





Quote
Re: Passing a varible to another entity
Posted by Leperous on Sun Dec 5th at 12:24pm 2004


Math counters don't seem to work like that... what effect are you trying to achieve?



Quote
Re: Passing a varible to another entity
Posted by iceman on Sun Feb 20th at 2:37am 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




Post Reply