getting obseerved object reference

Post » Thu Jun 21, 2012 1:33 am

Hello
Is there any way to get the object reference from the object the player is looking at?

thanks and good mooding
User avatar
Brad Johnson
 
Posts: 3361
Joined: Thu May 24, 2007 7:19 pm

Post » Wed Jun 20, 2012 7:54 pm

SKSE is working on GetCrosshairREF(), I believe. Currently, I don't think there's a way.
User avatar
Marquis T
 
Posts: 3425
Joined: Fri Aug 31, 2007 4:39 pm

Post » Wed Jun 20, 2012 8:12 pm

Best you can do is have the objects REgister for LOS from the player. Or check Game.GetPlayer().HasLOS(Object)
User avatar
El Khatiri
 
Posts: 3568
Joined: Sat Sep 01, 2007 2:43 am

Post » Wed Jun 20, 2012 11:23 pm

you can do it for actors without skse, but not anything else really. Just requires firing off a target actor magic effect with a script attached to retrieve the objectreference that the effect lands on.
User avatar
Hella Beast
 
Posts: 3434
Joined: Mon Jul 16, 2007 2:50 am

Post » Wed Jun 20, 2012 7:52 pm

Well a quest alias can target objects with LOS as a condition I think...but you'd have to know what to look for, and it wouldn't home in on what the player is looking at directly...
User avatar
Yvonne Gruening
 
Posts: 3503
Joined: Mon Apr 23, 2007 7:31 pm


Return to V - Skyrim