PDA

View Full Version : npc spawning in custom module???


bryzz
05-27-2009, 06:56 PM
i have read a tutorial and i was wondering if for the direction an npc faces is there a cheat that can tell you which way your character is facing or should i just mess around with the XOrientation and the YOrientation until it is the way i want it

i wanted to know because if you have to mess around with the orientations would it not take and extended amount of time to get 1 npc to spawn

considering that every time you change it you have to recompile it into a .mod file

newbiemodder
05-27-2009, 11:59 PM
Look in the General Tutorials...Rotation of Creatures and Doors in the Git file by e-varmint. I just used it myself to set the direction of some npc's in my own mod.

glovemaster
05-28-2009, 07:38 AM
In SWKotOR you can just type "whereami" (without quotes) into the cheat console to get your coordinates. In TSL you need to download a mod called the "Whereami Armband" which will print the information to your feedback log; off the journal tab.

As for playing with Orientation, I wrote a little program called "AngleToVector" which does exactly the same as the KotOR AngleToVector() function, and will give you an XOrientation and a YOrientation from an Angle. With that you just need to remember that 0 degrees is East, 90 degrees is North and follows round to 360 respectively.

All the above mentioned tools and more are all announced here:
http://www.lucasforums.com/forumdisplay.php?f=646

Hope that helps :)