Talk:SteamVR/Environments/Scripting/flashlight script code full: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
 
No edit summary
Line 1: Line 1:
== Problem when I drop the flashlight ==
== Problem when I drop the flashlight ==


I copied the exact code, for the flashlight, and it works, but as soon as I drop the flashlight either A: If I'm in Hammer, then Hammer crashes, or B: If I'm in Steam VR, then it freezes, goes to the Steam VR loading screen, and stays there. Until I press the Windows button on My WMR controllers, that takes my back. But if I go back into Steam VR, it still is at the loading screen. Please help!
I copied the exact code, for the flashlight, and it works, but as soon as I drop the flashlight either A: If I'm in Hammer, then Hammer crashes, or B: If I'm in Steam VR, then it freezes, goes to the Steam VR loading screen, and stays there. Until I press the Windows button on My WMR controllers, that takes my back. But if I go back into Steam VR, it still is at the loading screen. Please help! <small>—The preceding [[Wikipedia:Wikipedia:Signatures|unsigned]] comment was added by [[User:Fox G∆MING|Fox G∆MING]] ([[User talk:Fox G∆MING|talk]] • [[Special:Contributions/Fox G∆MING|contribs]]).</small><!-- Template:Unsigned -->
:Looks like the script killing the light entity only after the tool has been dropped is what's causing it. I added code to kill the light sooner, and that seems to have fixed it. [[User:Rectus|Rectus]] ([[User talk:Rectus|talk]]) 14:46, 11 June 2018 (UTC)

Revision as of 07:46, 11 June 2018

Problem when I drop the flashlight

I copied the exact code, for the flashlight, and it works, but as soon as I drop the flashlight either A: If I'm in Hammer, then Hammer crashes, or B: If I'm in Steam VR, then it freezes, goes to the Steam VR loading screen, and stays there. Until I press the Windows button on My WMR controllers, that takes my back. But if I go back into Steam VR, it still is at the loading screen. Please help! —The preceding unsigned comment was added by Fox G∆MING (talkcontribs).

Looks like the script killing the light entity only after the tool has been dropped is what's causing it. I added code to kill the light sooner, and that seems to have fixed it. Rectus (talk) 14:46, 11 June 2018 (UTC)