Scripts / Evaluate some code "all-time"

Author
Message
gaussmake1994
8
Years of Service
User Offline
Joined: 25th Jul 2015
Location:
Posted: 29th Oct 2015 16:34
I need to call some code "all-time", so I maked next script:



Basically, I want to iterate __xr.service.main function array, but it's worked only once. So I commented it and add Prompt("HELLO " .. #__xr.service.main) to show it's size. But it's also worked only one time. What I'm doing wrong?
gaussmake1994
8
Years of Service
User Offline
Joined: 25th Jul 2015
Location:
Posted: 29th Oct 2015 16:48
Seems like it was some other error. Now it's work correct with next code:
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 29th Oct 2015 22:28
If you place you script in an entity that has the always active = yes int he properties, then the code will always be active also.

Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

Login to post a reply

Server time is: 2024-05-05 08:13:19
Your offset time is: 2024-05-05 08:13:19