Image:
Author: s_noonan Group: Technical Filesize: 21.58 kB Date added: 2014-12-05 Rating: 5 Downloads: 341 Views: 331 Comments: 0 Ratings: 1 Times favored: 0 Made with: Algodoo v2.1.0 Tags:
|
This is a cheap knockoff of Kilinich's onStopHitByLaser event. "Imitation is the sincerest form of flattery"
Rev A: Changed mode of operation for improved reliability at high simulation speeds.
This is how it works:
Local _refCount gets set to the global scene.my.refLaserCount in the onLaserHit or onHitByLaser events. The master laser increments scene.my.refLaserCount once per onLaserHit event. If the slave object stops getting onLaserHit or onHitByLaser events, then the _refCount drops more than 1 count below scene.my.refLaserCount and the _onNotLaserHit or _onNotHitByLaser event is raised. |
Last edited at 2023/06/24 15:28:01 by s_noonan
Please log in to rate this scene
|