scope?

Lightstalker

New Member
Reaction score
55
It limits access to the functions inside. One advantage of it is that you can have one function named blahblah inside scope blue and have a function with the same name inside another scope.
 

roXplosive

New Member
Reaction score
15
I see now ... So all the functions inside are private . What about the other arguments I see used sometimes with scope ? Do they determine if a triggerinit function inside the scope is automatically executed ?

And does it influence the access to variables too ?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
1. No, not all the function inside a scope are automatically private, you need to put the prefix "private" infront of the function to make it private... Scope just enables the ability to do this ;)

2. Which arguments do you mean ??? :S
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
Do they determine if a triggerinit function inside the scope is automatically executed ?
You need to declare it
JASS:
scope Test initializer Init

Init is the initialization function name.
 

roXplosive

New Member
Reaction score
15
OK thanks for the help ... I was thinking it is like the C++ classes but some sort of uberclass that makes stuff private inside unlsee otherwise stated . :thup:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top