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:13]
amn
hpl2:tutorials:script:slight_oil_recovery [2013/07/26 23:04] (current)
amn
Line 1: Line 1:
-This is a feature i did for my custom story\\  +====== Slight Oil Recovery ====== 
-to help the player continue.+ 
 + 
 +This is a feature i did for my custom story to help the player continue.
  
  
Line 6: Line 8:
  
  
-<​code> ​ 
 <code php> <code php>
 void OilRecovery ( string &in asTimer )  void OilRecovery ( string &in asTimer ) 
-+      ​ 
-        if ( GetLanternActive() == false ) {  +        if ( GetLanternActive() == false ) { AddPlayerLampOil( 0.25 ); }
-        ​AddPlayerLampOil( 0.25 ); } +
         AddTimer ( "",​ 5, "​OilRecovery"​ );          AddTimer ( "",​ 5, "​OilRecovery"​ ); 
 } }
-</​code>​ 
 </​code>​ </​code>​
  
Line 22: Line 20:
  
  
-<​code> ​ 
 <code php> <code php>
 AddTimer ( "",​ 5, "​OilRecovery"​ ); AddTimer ( "",​ 5, "​OilRecovery"​ );
-</​code>​ 
 </​code>​ </​code>​
  
hpl2/tutorials/script/slight_oil_recovery.1373321636.txt.gz · Last modified: 2013/07/08 22:13 by amn