Teleport Script
#4
#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.
Duty is everything, the greatest of joys, the deepest of sorrows.
Ответ


Сообщения в этой теме
Teleport Script - от Booyaka - 22.12.2008, 16:12
Teleport Script - от ALtair - 22.12.2008, 23:31
Teleport Script - от Booyaka - 23.12.2008, 01:52
Teleport Script - от ALtair - 23.12.2008, 02:23
Teleport Script - от Booyaka - 23.12.2008, 18:13
Teleport Script - от Booyaka - 02.01.2009, 16:47
Teleport Script - от ALtair - 02.01.2009, 18:34
Teleport Script - от Booyaka - 02.01.2009, 21:42

Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)