Jump to content

Home

how do you spawn npcs? (and warp to other areas?)


Recommended Posts

To go between areas, the easiest technique is to use a script to call the StartNewModule function. You can attach the script to a door (.utd) or trigger (.utt) template.

 

void main () { 
StartNewModule("152HAR") // .are Tag field goes here
}
Link to comment
Share on other sites

Originally posted by tk102

To go between areas, the easiest technique is to use a script to call the StartNewModule function. You can attach the script to a door (.utd) or trigger (.utt) template.

 

void main () { 
StartNewModule("152HAR") // .are Tag field goes here
}

what does it mean by tag field the name of the place like 001ebo or something along those lines.
Link to comment
Share on other sites

Originally posted by tk102

To go between areas, the easiest technique is to use a script to call the StartNewModule function. You can attach the script to a door (.utd) or trigger (.utt) template.

 

void main () { 
StartNewModule("152HAR") // .are Tag field goes here
}

also how do i attach it to a door or a trigger
Link to comment
Share on other sites

You dont, you have to copy and paste Tk's script, onto a notepad, and save it as what ever you want, but make it have an .nss extention (Example: Say you named it StartNewModule, you would have to put a .nss extention on it so it would look like this StartNewModule.nss), then close the notepad and locate the script, and compile it, and stick it in your Override.

 

Hope this helps!

 

-DarthSmallz

Link to comment
Share on other sites

what does it mean by tag field the name of the place like 001ebo or something along those lines.

 

Yes... it's the module name essentially, like 001ebo.

 

also how do i attach it to a door or a trigger

Name the script something unique, for example: dartrai_newmod1.nss. Compile it. Now you have dartrai_newmod1.ncs. Now put "dartrai_newmod1" in the .utt's OnEnter script field. (For doors you can use OnClick or OnOpen fields.)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...