3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: 1 [2]

Author Topic: How To change ESC button?  (Read 2487 times)

« Reply #15 on: November 17, 2012, 08:10:41 AM »
how about

void Main()
{
   if(iInitializing()){
     iEscKeyDisable();
   }
}

the initialization block enable one time execution of code at the startup of a script...

--Mike
« Reply #16 on: November 19, 2012, 06:49:10 AM »
Interesting... I would usually just use iScriptStop(); at the end of the script.


Gamefreaks1234 gaming forum a great place for general gaming chat and getting your games out there and played.
« Reply #17 on: November 20, 2012, 04:10:52 PM »
Interesting... I would usually just use iScriptStop(); at the end of the script.

I'm pretty sure it makes no noticeable difference to the performance. Granted, with iInitializing() the if() statement is still evaluated 60 times per second, whereas I assume that iScriptStop() would completely remove the script from the list of scripts to run each loop, thereby removing the minuscule amount of overhead caused by evaluating if(iInitializing()).
« Last Edit: November 20, 2012, 04:19:18 PM by StarKiller53861 »
Using 3D Rad v7.10, Windows 7 / Arch Linux, AMD Sempron 2.1GHz, ATI Radeon HD 3200.

Advanced Script Editor for 3D Rad (v3.0.2)
« Reply #18 on: November 29, 2012, 01:30:40 PM »
Use the Skript Command "iEscDisable()"
Pages: 1 [2]