Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

HeartBeat fastening?

Page: 1 of 1
 newszi
07-05-2006, 9:29 AM
#1
Is that possible, by any means, that the onHeartBeat scripst re-execution delay can be lowered? So the re-execution can be fastened?
 stoffe
07-05-2006, 3:39 PM
#2
Is that possible, by any means, that the onHeartBeat scripst re-execution delay can be lowered? So the re-execution can be fastened?

As far as I am aware the heartbeat event of an object is hardcoded to run roughly every 3 seconds at the Default AI level, and I don't think that can be changed.

If it's a creature running the event you could probably, in theory, force it to run another heartbeat halfway between "ordinary" heartbeats, by adding something like this in the heartbeat script:

if (!GetLocalBoolean(OBJECT_SELF, 140)) {
DelayCommand(1.5, ForceHeartbeat(OBJECT_SELF));
SetLocalBoolean(OBJECT_SELF, 140, TRUE);
}
else {
SetLocalBoolean(OBJECT_SELF, 140, FALSE);
}
Page: 1 of 1