Page MenuHomeFeedback Tracker

setHit command does not work with vehicle headlights
Assigned, WishlistPublic

Description

setHit ["Light_R", 1] or setHit ["Light_L", 1] ... has no effect for vehicles (tested at least with Offroad and Hunter).

Looking at the config files the headlight reflector selections are named "Light_R" and "Light_L" - so theoretically this command should disable one of the headlights?

Details

Legacy ID
912897252
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Spawn yourself and spawn a vehicle/car in the editor (name it "test")
  2. Go inside the vehicle and turn the lights on and do an "Eject"
  3. Go at the front and run "test setHit ["Light_R", 1]" on the debug console.

Event Timeline

simast edited Steps To Reproduce. (Show Details)May 27 2013, 4:11 PM
simast edited Additional Information. (Show Details)
simast set Category to Scripting.
simast set Reproducibility to Always.
simast set Severity to None.
simast set Resolution to Open.
simast set Legacy ID to 912897252.May 7 2016, 2:18 PM

To be more clear, here are screenshots of the before and after all reflector hitpoints are set to 1 damage with "veh1 setHit ["reflector_class",1]".

Before: http://puu.sh/9dMTK/3ab30ddd8d.png

After: http://puu.sh/9dMUx/90021c7c43.png

If you look closely, it actually shifts where the true spotlight is. The fact that hitpoint names are being shared by reflectors may also have to do with this.

http://puu.sh/9dNf8/2b038f30f8.png
http://puu.sh/9dNfL/a553e7857e.png

This problem still persists. The command (setHit) works with the houses, but does not work with cars. It doesn't allow to realize some lighting functional with scripts.