Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rule("Rule 1")
- {
- event
- {
- Ongoing - Each Player;
- All;
- All;
- }
- conditions
- {
- Is Button Held(Event Player, Secondary Fire) == True;
- Or(Compare(Players In Slot(0, All Teams), ==, Event Player), Compare(Players In Slot(1, All Teams), ==, Event Player)) == True;
- }
- actions
- {
- Wait(0.016, Ignore Condition);
- Set Player Variable(Event Player, B, Event Player);
- Skip If(Compare(Count Of(Filtered Array(Players in View Angle(Event Player, All Teams, 360), Is In Line of Sight(Event Player,
- Current Array Element, Barriers Do Not Block LOS))), ==, 0), 1);
- Start Facing(Event Player, Direction Towards(Eye Position(Event Player), World Vector Of(Vector(0, 1.555, 0), Value In Array(
- Filtered Array(Players in View Angle(Event Player, All Teams, 360), Is In Line of Sight(Event Player, Current Array Element,
- Barriers Do Not Block LOS)), 0), Rotation And Translation)), 10000, To World, Direction and Turn Rate);
- Skip If(Compare(Count Of(Filtered Array(Players in View Angle(Event Player, All Teams, 360), Is In Line of Sight(Event Player,
- Current Array Element, Barriers Do Not Block LOS))), !=, 0), 1);
- Stop Facing(Event Player);
- Set Ultimate Ability Enabled(Event Player, True);
- Loop If Condition Is True;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement