Support Board
Date/Time: Sat, 08 Feb 2025 05:52:01 +0000
Post From: Count set to 0 every tick
[2020-06-22 15:51:03] |
User907968 - Posts: 826 |
it is like it is reset to 0 @ eack new tick.
Each time the function is called, your variable 'periodCount' will be uninitialised i.e. have no value set. Read this to understand when the function is called using automatic looping: Working with ACSIL Arrays and Understanding Looping If you want the variable to retain its value between calls to the function, there are the persistent variable functions available: Persistent Variable Functions |