How to correlate band_add_segment_segment(...) and band_set_strength(index, strength)
Case number: | 845813-987810 |
Topic: | Game: Tools |
Opened by: | smith92clone |
Status: | Closed |
Type: | Suggestion |
Opened on: | Saturday, June 5, 2010 - 18:23 |
Last modified: | Thursday, July 19, 2012 - 08:15 |
the current function band_add_segment_segment(...) does not return any information.
It would be very useful if this function returned the current band number assigned to the newly created band.
The current method requires the following:
band_add_segment(5,7)
band_index = get_band_count() -- assuming the band just created has the highest band count
band_set_strength(band_index,1.0)
Returning the band number results in the following code
band_index = band_add_segment(5,7)
band_set_strength(band_index,1.0)
Much easier to follow and to write
»
Sounds useful.
I always appreciate game-internal solutions to shorten script code.