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:16]
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 8: Line 10:
 <code php> <code php>
 void OilRecovery ( string &in asTimer )  void OilRecovery ( string &in asTimer ) 
- +      ​ 
- +        if ( GetLanternActive() == false ) { AddPlayerLampOil( 0.25 ); } 
-+        AddTimer ( "",​ 5, "​OilRecovery"​ ); 
- +
- +
-             if ( GetLanternActive() == false ) {  +
-        ​AddPlayerLampOil( 0.25 ); } +
- +
- +
-             AddTimer ( "",​ 5, "​OilRecovery"​ ); +
- +
 } }
 </​code>​ </​code>​
Line 27: Line 20:
  
  
-<​code>​ 
-  
 <code php> <code php>
 AddTimer ( "",​ 5, "​OilRecovery"​ ); AddTimer ( "",​ 5, "​OilRecovery"​ );
hpl2/tutorials/script/slight_oil_recovery.1373321779.txt.gz · Last modified: 2013/07/08 22:16 by amn