User Tools

Site Tools


modding:function:sysstoptime

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

modding:function:sysstoptime [2014/12/27 04:40] – external edit 127.0.0.1modding:function:sysstoptime [2017/01/28 04:11] (current) – Added new syntaxes 0xabcdef
Line 1: Line 1:
-Discuss this page on this pages [[sysStopTime Talk Page|TalkPage]]+[[sysStopTime Talk Page|Discuss this page]]
  
 === sysStopTime === === sysStopTime ===
Line 5: Line 5:
 See [[http://xelerus.de/index.php?s=functions&function=275|sysStopTime at Xelerus]] See [[http://xelerus.de/index.php?s=functions&function=275|sysStopTime at Xelerus]]
  
-^ Syntax | (sysStopTime number spaceObject) | +^ Syntax | (sysStopTime duration except-> True/Nil | 
-^ Arguments | number: How many ticks you want to stop time for. | +^ Syntax 2 | (sysStopTime targetList duration) -> True/Nil 
-^ | spaceObject: A space object that you want immune from the time stop. Can be any spaceobject. (can not be Nil) |+^ Arguments duration: How many ticks you want to stop time for. | 
 +^ | except: A space object that you want immune from the time stop. Can be any spaceobject. (can not be Nil) 
 +^ Arguments 2 | targetList: A list of space objects to stop time on. | 
 +^ | duration: How many ticks you want to stop time for. |
 ^ Returns | condition: True if successful, Nil otherwise. | ^ Returns | condition: True if successful, Nil otherwise. |
 ^ Category | [[system]], [[time]] | ^ Category | [[system]], [[time]] |
-^ Description | Stops time for the game except for the given spaceObject. Please not that the function stops time for any timers, even if placed on the spaceObject that you want to be immune. |+^ Description | Stops time for the system except for the given spaceObject. Please note that the function stops time for any timers, even if placed on the spaceObject that you want to be immune. | 
 +^ Description 2 | Stops time for only the specified objects and their timers. | 
 + 
 +This function does not work for objects with the attribute **timeStopImmune**
  
 === Example === === Example ===
Line 16: Line 22:
 <code lisp>(sysStopTime 500 gplayership)</code> <code lisp>(sysStopTime 500 gplayership)</code>
 Stops time for everything except for the player. Stops time for everything except for the player.
 +
 +<code lisp>(sysStopTime (sysFindObject gPlayerShip "s A E") 900)</code>
 +Freezes the player's enemy ships in place for 30 real-world seconds.
 Return to [[:Functions]] list Return to [[:Functions]] list
  
modding/function/sysstoptime.1419655255.txt.gz · Last modified: 2017/01/28 04:11 (external edit)