Jump to content

how to give arguments on handleFunction of event ?


Recommended Posts

Hi there, i am bit rusty on this, trying to get used to it again :)

Soo, my question is how can I set up a handlerFunction for a event, but giving arguments?

I mean something like this:

addEventHandler( "onPlayerSpawn", rootElement, giveCoords(2,3,1) )

this is not possible right? I can only put the name of the function without any arguments, on that third argument of addEventHandler, right? So .. is there any workaround to this?

I guess u understood me, thanks in advance

Link to comment

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...