• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How to make soccer game system?

Status
Not open for further replies.
Level 8
Joined
May 13, 2007
Messages
392
Im not sure if this works, but this might be a good way to make ball go with the player.

  • Ball Trigger
  • Events -
    • Unit -A unit comes within 110 range of (ball)
  • Coditions -
  • Actions -
    • Unit - Order (ball) to move to direction of (triggering unit)
This is just an idea. I think you need Jass or really advanced triggers to do a soccer system.

I now fear that someone comes here and says that making a soccer system is easy, making the above look really stupid ...
 
Level 8
Joined
May 13, 2007
Messages
392
Well, you can do this :

  • Ball Trigger
  • Events -
  • Unit -A unit comes within 110 range of (ball)
  • Coditions -
  • Actions -
  • Unit - Order (ball) to move to direction of (triggering unit)
  • Unit - Add ability to (triggering unit)
The ability must have a buff for e.g Ball that means that he controls the ball.

Then do :

  • Pass
  • Event
  • Unit - Unit begins casting an ability
  • Conditions
  • Ability being cast equal to Pass
  • Casting unit has buff of type ball
  • Actions
  • Unit - Order ball to move to (a place. Here it needs variables to set the pass place)
I wish i helped with this...
 
Status
Not open for further replies.
Top