Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Well I think I found a way to stop the error and keep it worling, just make an if/then/else that makes sure its a real player first.
Forward - Loop
Events
Timer - Every 0.03 seconds of Game Time
Local Variables
TempPoint = No Point <Point>
TempInt = 0 <Integer>
Conditions
Actions
Player Group - Pick each player in (All players) and do (Actions)
Actions
Variable - Set TempInt = (Picked player)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Status of player TempInt) == Playing
Then
Variable - Set TempPoint = ((Position of HeroUnit[TempInt]) offset by 1.0 towards Rotation[TempInt] degrees)
General - If (Conditions) then do (Actions) else do (Actions)
If
Forward[TempInt] == true
Then
Unit - Order HeroUnit[TempInt] to ( Move targeting TempPoint) (Replace Existing Orders)
Camera - Pan the camera for player TempInt to (TempPoint offset by (0.0, 0.0)) over 0.1 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
If it wasn't there you could've made one yourself. You can make custom Functions, Actions and Conditions now. So it's more like using custom script. Very useful, especially for things you need to repeat a lot or if you just want to make the code shorter.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.