Difference between revisions of "Flying"

Jump to navigation Jump to search
464 bytes removed ,  00:50, 27 December 2011
m
imported>8asrun6aer
m
imported>8asrun6aer
Line 250: Line 250:


== Notes ==
== Notes ==
# This script requires that the player be in the air in order to activate flying.  In other words, the player must be jumping or falling before flying can be activated.  This catch is necessary to not produce the same wall/ceiling clipping that the customary [[SetPos]] method does, and for initially adjusting player velocities.  Though you can automate triggering a jump and activating flying if you wish.
# This script requires that the player be in the air in order to activate flying.  In other words, the player must be jumping or falling before flying can be activated.  This catch is necessary to not produce the same wall/ceiling clipping that the customary [[SetPos]] method does, and for initially adjusting player velocities.  Though you can automate triggering a jump and activating flying if you wish. You could also [[SetPos]] 5 or so units in the air and fly from there, but the danger there is clipping in tight interior spaces.
# At line ~194, the formula used to counteract local gravity can be found in the [[GetLocalGravity]] page.  This might not be exact as the player still loses elevation very slowly if hovering in place.
# A player can fly over castle walls in exterior world spaces.  Because they didn't enter the castle grounds through the front door, they'll be bewildered by how every building within the castle walls is nothing but a fake graphics placeholder.  There are "Open Cities" mods out there that should correct that.
# Sometimes, activating flying only causes the player to rise 20 or so feet and then fall.  Click the ''activate'' key a few more times to really activate flying.  The exact location of this bug in this script is not yet known, but likely somewhere in the initial flight activation check area (line ~69).
# A player can fly over castle walls in exterior world spaces.  Because they didn't enter the castle grounds through the front door, they'll be bewildered by how every building within the castle walls is nothing but a fake graphics placeholder.  Although as yet untested with this script, you may want to mention to your mod users any "Open Cities" mods that may be out there to correct this issue.
# Though modified heavily from the original code and using different procedural flow with new methods and solutions for flying controls and effects, some of the basic flight concepts of the above script were based on the flying script packaged with the "A Chingari and Ismelda Demon Race:Demon Race v3-0-3" mod found at the [[TESNexus]] site. (Note that the mod contains adult content, and cannot be linked to from this site. If you choose to find it by searching TES Nexus, you accept that you may be subject to said adult content.)
# Though modified heavily from the original code and using different procedural flow with new methods and solutions for flying controls and effects, some of the basic flight concepts of the above script were based on the flying script packaged with the "A Chingari and Ismelda Demon Race:Demon Race v3-0-3" mod found at the [[TESNexus]] site. (Note that the mod contains adult content, and cannot be linked to from this site. If you choose to find it by searching TES Nexus, you accept that you may be subject to said adult content.)




[[Category: Useful Code]]
[[Category: Useful Code]]
Anonymous user

Navigation menu