1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 15:40:29 +01:00

Disabled deletion/creation of shadow barrier and re-enabled updating position based on mouse position.

This commit is contained in:
Rich Dunne 2020-11-12 19:19:19 -07:00
parent c05c1f6ddb
commit 4c0ca772e8

View file

@ -125,12 +125,13 @@ namespace SceneManager
DisableBarrierMenuOptionsIfShadowConeTooFar();
if (shadowBarrier)
{
shadowBarrier.Delete();
CreateShadowBarrier();
//shadowBarrier.Heading = rotateBarrier.Value;
//shadowBarrier.Position = MousePositionInWorld.GetPositionForBarrier;
//Rage.Native.NativeFunction.Natives.PLACE_OBJECT_ON_GROUND_PROPERLY(shadowBarrier);
//Rage.Native.NativeFunction.Natives.SET_ENTITY_TRAFFICLIGHT_OVERRIDE(shadowBarrier, setBarrierTrafficLight.Index);
// Delete and re-create for testing purposes.. Parks' stop light prop
//shadowBarrier.Delete();
//CreateShadowBarrier();
shadowBarrier.Heading = rotateBarrier.Value;
shadowBarrier.Position = MousePositionInWorld.GetPositionForBarrier;
Rage.Native.NativeFunction.Natives.PLACE_OBJECT_ON_GROUND_PROPERLY(shadowBarrier);
Rage.Native.NativeFunction.Natives.SET_ENTITY_TRAFFICLIGHT_OVERRIDE(shadowBarrier, setBarrierTrafficLight.Index);
}
void DisableBarrierMenuOptionsIfShadowConeTooFar()