Quote:
Originally Posted by Stefan
NPCs or weapon-NPCs with odd names can be accessed like this:
PHP Code:
("Control-NPC").dosomething();
|
You don't need the ()'s either (You can just do "Control-NPC".dosomething(); ) but it is fairly unfashionable to some people to do that.
What Stefan meant by "odd names" would be any object with a math or script character in it (Examples are: +-*/^%!@()[]{}<>'")
Hope that makes sense!