primem0ver Posted March 9, 2015 Share Posted March 9, 2015 I am building a quest in a mod where the character is supposed to search a room to see if they can find clues to a conspiracy around which the quest centers. The "clue" is fairly obvious if they search the right part of the room but I don't want to give where to look away using the object aliases that they will need to use in the next part of the quest. So how would I cause the quest to advance once they are close enough to the "clue" to see it? My guess would be to use some sort of room trigger object (like the kind use to trigger events when you walk into a room). But I am uncertain if this is the best way and how to use it if it is. Link to comment Share on other sites More sharing options...
henshu Posted March 9, 2015 Share Posted March 9, 2015 If you want it to move on when the player is looking at something, you could have a script running that uses game.GetCurrentCrosshairRef() Link to comment Share on other sites More sharing options...
primem0ver Posted March 9, 2015 Author Share Posted March 9, 2015 Ok. Yeah. That might work. Except what event do I do the check on? I don't want to bog down the system with constant checks. Link to comment Share on other sites More sharing options...
lofgren Posted March 9, 2015 Share Posted March 9, 2015 You could use OnGainLOS: http://www.creationkit.com/OnGainLOS_-_Form You will have to register the alias for line of sight updates: http://www.creationkit.com/RegisterForLOS_-_Form Link to comment Share on other sites More sharing options...
primem0ver Posted March 9, 2015 Author Share Posted March 9, 2015 Oh cool. That is perfect! I assume I would use the corresponding UnregisterForLOS when the quest advances. Is it possible to do a distance to player check as well? I don't want the user to see it from way across the room and miss it because they don't know what they are looking at. Is there a function reference for looking up stuff like this? The function reference seems to be a tutorial on writing functions, not what functions already exist. Link to comment Share on other sites More sharing options...
lofgren Posted March 9, 2015 Share Posted March 9, 2015 (edited) Edit: sorry, wrong page. http://www.creationkit.com/Category:Script_Objects Edited March 9, 2015 by lofgren Link to comment Share on other sites More sharing options...
Recommended Posts