View Single Post
  #2  
Old 02-24-2008, 06:39 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
There are two ways:
- if you use GS1-style (if (playerenters)...) then you can access the parameters at any time by params[]
- if you use GS2 then you get the parameters on the first call to onPlayerEnters(), but you need to check if the parameters actually exist because onPlayerEnters() is also called when you enter other levels:

PHP Code:
function onPlayerEnters() {
  if (
params.size()>0)
    echo(
"first parameter: " params[0]);

Reply With Quote