Jump to content

setTimer


Hazard|

Recommended Posts

Posted

Hello, can some of you fix the error I get of this sentence? very simple but I don't get the syntax obviously.

SYNTAX: timer setTimer ( function theFunction, int timeInterval, int timesToExecute, [ var arguments... ] ) 
  
setTimer(setElementAlpha(car, 200, 1000,1)) 

thx.

Posted

Ow, then it should be:

setTimer(function() setElementAlpha(car, 200) end, 1000, 1) 

Thought I could enter 1 code too without typing function() :P

Posted

Thanks :)

Could you do it with this one too?

  
setTimer(setElementCollidableWith, 1000, 1, vehicle, car, false) 

It's a little different.

thanks too.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...