위도우 오토샷

위도우 오토샷 입니다

룰 3개 만으로 제작됨

> rule("에임")
> {
> 	event
> 	{
> 		Ongoing - Each Player;
> 		All;
> 		All;
> 	}
> 
> 	action
> 	{
> 		Create Effect(Event Player, Sphere, Red, Ray Cast Hit Position(Eye Position(Event Player), Add(Eye Position(Event Player),
> 			Multiply(Facing Direction Of(Event Player), 100)), All Players(All Teams), Event Player, True), 0.100,
> 			Visible To Position and Radius);
> 	}
> }
> 
> rule("auto shot")
> {
> 	event
> 	{
> 		Ongoing - Each Player;
> 		All;
> 		All;
> 	}
> 
> 	condition
> 	{
> 		Ray Cast Hit Player(Event Player, Add(Eye Position(Event Player), Multiply(Facing Direction Of(Event Player), 100)), All Players(
> 			All Teams), Event Player, True) == True;
> 	}
> 
> 	action
> 	{
> 		Press Button(Event Player, Primary Fire);
> 	}
> }
> 
> rule("hud")
> {
> 	event
> 	{
> 		Ongoing - Each Player;
> 		All;
> 		All;
> 	}
> 
> 	action
> 	{
> 		Create HUD Text(Event Player, String("{0} : {1} : {2}", String("Target", Null, Null, Null), Ray Cast Hit Player(Eye Position(
> 			Event Player), Add(Eye Position(Event Player), Multiply(Facing Direction Of(Event Player), 100)), All Players(All Teams),
> 			Event Player, True), Ray Cast Hit Position(Eye Position(Event Player), Add(Eye Position(Event Player), Multiply(
> 			Facing Direction Of(Event Player), 100)), All Players(All Teams), Event Player, True)), Null, Null, Left, 0, Green, White,
> 			White, Visible To and String);
> 	}
> }

CODE 5E64J