User Tools

Site Tools


hpl2:tutorials:script:slight_oil_recovery

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hpl2:tutorials:script:slight_oil_recovery [2013/07/08 22:18]
amn
hpl2:tutorials:script:slight_oil_recovery [2013/07/26 23:04] (current)
amn
Line 1: Line 1:
 +====== Slight Oil Recovery ======
 +
 +
 This is a feature i did for my custom story to help the player continue. This is a feature i did for my custom story to help the player continue.
  
Line 6: Line 9:
  
 <code php> <code php>
-void OilRecovery ( string &in asTimer ) {         ​if ( GetLanternActive() == false ) { AddPlayerLampOil( 0.25 ); } +void OilRecovery ( string &in asTimer )  
-        AddTimer ( "",​ 5, "​OilRecovery"​ ); }+       
 +        ​if ( GetLanternActive() == false ) { AddPlayerLampOil( 0.25 ); } 
 +        AddTimer ( "",​ 5, "​OilRecovery"​ );  
 +}
 </​code>​ </​code>​
  
hpl2/tutorials/script/slight_oil_recovery.1373321885.txt.gz · Last modified: 2013/07/08 22:18 by amn