Fandom

Colobot Wiki

Ipf

67pages on
this wiki
Add New Page
Comments0 Share

Syntax:Edit

ipf(int value)

Description:Edit

The ipf() (Instructions Per Frame) function sets the desired number of instructions the current bot should execute between video frame updates, effectively increasing the execution speed of the program running on that bot. As such, this function can make the difference between life and death when calculating a firing solution for a fast-moving enemy.

As of Colobot 1.8 the default value of ipf() appears to be on the order of 200, and the maximum is 10,000 (passing any larger number as an argument produces the same results as passing 10,000).

Note that wait() and any function that causes animation to occur (grab(), move(), aim(), goto(), etc.) take the same amount of time regardless of ipf().

See also.Edit

CBOT Language

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.