23.12.2008, 02:23
#Teleport2 function is meant to get an argument when it is called. For example, you could write #Teleport2(GetLeader()) - then it would call function #Teleport2 with the Leader (aka Hero) as it's argument, so in the function's body "this" will be assumed as "Hero".
Calling #Teleport2(NULL) teleports a NULL-object somewhere, but NULL object is virtual, so you won't see anything changing. You should pass something to the #Teleport2 func.
If you want to teleport somebody, who had just switched the lever, you should call #Teleport2 in the #Teleport1 func, but you should get a target-object first. For example, you could determine who is near the Lever and teleport them all.
Calling #Teleport2(NULL) teleports a NULL-object somewhere, but NULL object is virtual, so you won't see anything changing. You should pass something to the #Teleport2 func.
If you want to teleport somebody, who had just switched the lever, you should call #Teleport2 in the #Teleport1 func, but you should get a target-object first. For example, you could determine who is near the Lever and teleport them all.
Duty is everything, the greatest of joys, the deepest of sorrows.