Jump to content

ajs52698

Members
  • Posts

    140
  • Joined

  • Last visited

Everything posted by ajs52698

  1. Im attempting to write a script where the player initiates a selection on a object and then a audio clip plays but the audio will not play. The audio I am able to hear in the ck so I dont think its a issue with the file. Heres part of the script Function RadioMessage() Int Count Count = Count + 1 If Count == 1Soundr.PlayAndWait(Game.getplayer()) elseif Count == 2 Sound.PlayAndWait(Game.Getplayer()) EndifEndFunction The Game.getplayer is just for testing
  2. So im trying to make a script that programs a npc to actively search for nearby object and go to them. My problem is when using the command Player.translatetoref, when specifying the location I want the npc to move to I need it to automatically use the object that the npc has found that is closest to it. So player.translatetoref( The location is automaticly retrieved,100)
  3. alright ill check all that out thanks for the help with this im gonna hit the sack
  4. is this what your referring to? I need something to work off of ha ScriptName RamaFormListExampleScript extends ObjectReference Actor Property PlayerREF Auto ; Least 'expensive' way to refer to the player FormList Property ListOfObjectsFLST Auto ; see notes after script for more info on this property Event OnTriggerEnter(ObjectReference akActionRef) If akActionRef == PlayerREF Int iIndex = ListOfObjectsFLST.GetSize() ; Indices are offset by 1 relative to size While iIndex iIndex -= 1 ObjectReference kReference = ListOfObjectsFLST.GetAt(iIndex) As ObjectReference ; Note that you must typecast the entry from the formlist using 'As'. If kReference.IsEnabled() kReference.Disable() Else ; If kReference.IsDisabled() kReference.Enable() EndIf EndWhile EndIf EndEvent Got it off this wiki page http://www.creationkit.com/index.php?title=Complete_Example_Scripts#Cycle_Through_a_List_of_Objects_and_Perform_an_Action_on_Each_Object.28FormLists.29
  5. well what i was wondering is instead of typing out all the objectreference locations i can create a formlist which has all the locations and somehow set the blah hard time explaining Game.FastTravel ( Form List Index Number here instead of Objectreference) this is what i was thinking i could do if this is not possible then is there a simpler way to go about specifying locations to travel to?
  6. alright now im trying to find a simple way to give each selection a travel location and this is what im thinking I can use. http://www.creationkit.com/index.php?title=GetFormFromFile_-_Game but im not sure how to go about doing it
  7. Ah that works thanks, its funny how simple some of this coding stuff is, the only difficult part is understanding what everything is used for and putting it all together
  8. So ive made some progress but when i select a place to travel nothing happens, any ideas? Scriptname RocketTravelMain extends objectreference Message Property RocketTravel222 autoObjectreference DrumlinDinerEvent onActivate (objectreference akaction)SHowMenu() Endevent Function ShowMenu(int aibutton = 0)aibutton = RocketTravel222.show() If aibutton == 0 elseif aibutton == 1Game.FastTravel(DrumlinDiner) elseif aibutton == 2 elseif aibutton == 3 elseif aibutton == 4 elseif aibutton == 5 elseif aibutton == 6 elseif aibutton == 7 elseif aibutton == 8 elseif aibutton == 9 elseif aibutton == 10 elseif aibutton == 11 endifendfunction
  9. So I have been trying to figure out just enough about scripting to make the foundation for a fast travel mod, but im not getting very far. I am wondering if anyone could either right the script for me or help me do it myself. What im trying to achieve is this . Player activates object bringing up a dialog with travel options. Each travel option triggers a teleportation script? moving the player to a different location. The travel options also need resource requirements depending on the distance.
  10. Been messing around with wings 3d lately and im looking for opinions and advice on what ive made [new to creating mods]. Im going for a sort of junky look like something you would see from the game rust. i thought it would fit into the fallout universe well. Ignore the crap texture ;p Rocket
  11. I always have the problem of finding good loot but not being able to access it. With a mod that allows me multiple waypoints i can just mark all the location i want to go back to!
×
×
  • Create New...