| · Portal |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| Ranokoa |
Posted: Apr 14 2009, 22:44 PM
|
|
Interior Designer Group: Team Member Posts: 29 Member No.: 266 Joined: 5-April 09 |
This script i kinda peiced together like a year ago on an abandoned mod project which i might finish later. ran into it again while doing ''spring hard drive cleaning''.
As i say, i am no master scripter, i peiced it together by an off idea while looking at a couple vanilla and modded scripts. Its simple, its short, its easy to understand, and it actually works.. i never thought it would lol but i guess i got it right. What it does, simply, is when you are a certain distance away (in this case like 10 yards) the NPC you killed will ressurect. Whether they are hostile or not is up to you, but i was going to use it for an eternal training ground mod. WHICH I STILL AM so dont think about stealing it im always monitoring the latest files (Looks quickly side to side) Im unsure if it CAN be used in the colored rooms, or better put WHERE it could be used, but here it is in case someone has an idea that will go nicely with some quest, or easter egg.. scn CRXResurrectDistanceScript ;Made by Ranokoa. Colored Room Interior/Exterior designer begin gamemode if GetDead == 1 && getdistance player > 10 resurrect endif end PS: I never really did now what measurements these scripts use, yards, feet, inches i have NO idea. I only tested it once, like a year ago, forgot about it, found it, and forgot the specifics about that test. All i know is its bug free and functional. ~Ranokoa PPS: Umm, i never looked then and i dont know now if it is used already in some other mod. Again, its a VERY simple script, and for the number of mods it can be used in i would be suprised if its not used, however, it is possible that due to just HOW simple it is no one ever thought of it because, just like me, whenever i mod i always try to go big and never think simple. At least on personal projects. Point being, its possible its no one else figured it out, but unlikely. Still, ive never seen it used. |
| Vagrant |
Posted: Apr 15 2009, 04:32 AM
|
||||
![]() Administrator Group: Admin Posts: 986,308 Member No.: 1 Joined: 19-September 03 |
The units for scripts are game units, or that 128 units = 6 feet scale, which might be why it wasn't working like you wanted. 10 units is barely anything. As for usage, it probably wouldn't be too good for widespread usage since a few dozen references running getdistance checks every frame would chew up processing bad.
would still check every frame, even when alive since the check is part of the same case.
would only check distance if the first condition returned true... Thus being a slightly better option. |
||||
| Ranokoa |
Posted: Apr 15 2009, 19:30 PM
|
|
Interior Designer Group: Team Member Posts: 29 Member No.: 266 Joined: 5-April 09 |
I never ment like widespread use, like only in an interior as an easteregg or something. Idk. Just saying, i used it on a quicky mod just uploaded at tesnexus, still in the latest files, but again im no master scripter lol. Ill rewrite it with the thing you have but its just a suggestion. Also, thanks for telling me about the units. I have NO idea about them, and the perticular script there with the 10 distance was actually intentional for being practically nothing. I wanted them to ressurect IMMEDIANTLY after death, but it was a copy and paste script from the quicky mod i made so thats why the measurement is so low. But thanks for telling em how much is what.
|
![]() |
![]() ![]() ![]() |