Welcome to Mappers United

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more!

This message will be removed once you have signed in.

NeXus .

Calling External Scripts (untested)

What is the purpose of namespace?

In Black Ops 3 we use namespace for calling external scripts.

First off add 'namespace = example;' to your primary function for the script file:

function init() {
   namespace = example;
}

Calling external script:

#insert example;
Edited by NeXus .

Share this post


Link to post

It' laid out like this:

 

#namespace example;

function init()
{
    //your code
}

You can use the name of the script when calling a function from another script, or you can give your script a namespace and use that instead. 

Here's a vid I made a while back that could help:

Edited by M.A.K.E C E N T S

Share this post


Link to post

Wakka also used this method in the elevator script (see his vid and my tutorial)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

Map Hosting by 4T4Chris

QRSB1oT.jpg

For all your Call of Duty

Map Hosting and Download needs!

Click on the link below

Click Here!

Banner / Logo

Feel Free to Use at your site!

Cut and Paste

Click on the link below to download the images together:

Click Here

Native image size is 400x400

mubutton.png

mubutton.png