It's a system that was made in war3 and I liked it but here I can't make it work. The idea is the camera to be looking at a unit from their back (like WoW and other rpgs) and following them always from behind when they move.
- Camera should face the facing of a unit, just looking from his back, so if the unit turns left the camera shows from his back the direction he's looking. The system uses cursor in the normal way, still navigated by clicking with the cursor where to go but camera changes that to unit's look direction seen from the back. (no, you don't use the mouse to move the camera direction up-down like FPS you don't use the cursor for camera at all, camera's horizon is unit's facing, cursor used in the usual way)
- The camera should apply only for Random Unit from Currently Selected and Owned by Player 1 units. This allows if only 1 unit is selected, of course the camera picks that unit, if another unit is selected, the camera moves to watch from the back of the newly selected unit, if multiple units are selected the Random Unit From Currently Selected Units Owned By Player 1 allows to place the camera on 1 unit without confusion from selecting many units.
The Event will be a chat command 'Player types X message' to turn on the trigger for such mode - lock camera to not allow restore normal and chat command to turn off the trigger i,.e restore Melee camera, so I need the actions themselves.
Is that the RPG one or the WoW style one? THe WoW style one is missing some things because it was done a long time ago. I can't find some of the triggers he says to use, either they were removed(doubtful) or they were called something else
Thanks for the tutorial, it's flawless! There should be more tutorials like this one, clear and accurate in all aspects. Nothing is missing I dont have problems with the skybox or close blackness vision. It indeed solved like 75% of what I need. I even adapted a chat command (could be made any events to call them) to switch between RPG and Melee views any time you want. I thought when Camera Object (RPG View) is placed say 1 corner of the map and your hero moves to the other side and you decide to activate the RPG View when your hero is away from Camera Object, it won't go behind the hero and will remain where you placed it but the Camera always goes behind Hero any time you activate RPG View!
Now since I made this switch between Melee and RPG Views thx to the tutorial, the idea of my thread was - how should it look for when instead of using Hero [126.25, 161.11] unit on the map value, I use currently selected unit? That is I select 1 unit, the triggers apply and follow that unit, I select another unit, the camera starts following the new unit, I select a 3rd unit, it stops following the first two and applies for the 3rd, if I select several, the camera chooses 1 Random unit of currently selected and starts following that unit so that it doesn't cause confusion with multiple selection? (see above image for triggers, need to apply the triggers from Unit on the map to unit I currently select)
It should be "Unit from Unit Group." Choose unit 1 (or [random integer between 1 and Number of units in Selected Units] if you want to go that route, though I think unit 1 would make more sense to players). The unit group should be (selected units.)
Use a Variable, that can be later set to a specific unit on the map, created unit by triggers, be unit from selected units, other unit group or anything. Replace all where a unit on the map is used with the Variable in the RPG Vision triggers
It's a system that was made in war3 and I liked it but here I can't make it work. The idea is the camera to be looking at a unit from their back (like WoW and other rpgs) and following them always from behind when they move.
- Camera should face the facing of a unit, just looking from his back, so if the unit turns left the camera shows from his back the direction he's looking. The system uses cursor in the normal way, still navigated by clicking with the cursor where to go but camera changes that to unit's look direction seen from the back. (no, you don't use the mouse to move the camera direction up-down like FPS you don't use the cursor for camera at all, camera's horizon is unit's facing, cursor used in the usual way)
- The camera should apply only for Random Unit from Currently Selected and Owned by Player 1 units. This allows if only 1 unit is selected, of course the camera picks that unit, if another unit is selected, the camera moves to watch from the back of the newly selected unit, if multiple units are selected the Random Unit From Currently Selected Units Owned By Player 1 allows to place the camera on 1 unit without confusion from selecting many units.
The Event will be a chat command 'Player types X message' to turn on the trigger for such mode - lock camera to not allow restore normal and chat command to turn off the trigger i,.e restore Melee camera, so I need the actions themselves.
OneTwoSC made a pretty awesome video tutorial that will get you about 75% of the way there. Check it out-
Is that the RPG one or the WoW style one? THe WoW style one is missing some things because it was done a long time ago. I can't find some of the triggers he says to use, either they were removed(doubtful) or they were called something else
Thanks for the tutorial, it's flawless! There should be more tutorials like this one, clear and accurate in all aspects. Nothing is missing I dont have problems with the skybox or close blackness vision. It indeed solved like 75% of what I need. I even adapted a chat command (could be made any events to call them) to switch between RPG and Melee views any time you want. I thought when Camera Object (RPG View) is placed say 1 corner of the map and your hero moves to the other side and you decide to activate the RPG View when your hero is away from Camera Object, it won't go behind the hero and will remain where you placed it but the Camera always goes behind Hero any time you activate RPG View!
Now since I made this switch between Melee and RPG Views thx to the tutorial, the idea of my thread was - how should it look for when instead of using Hero [126.25, 161.11] unit on the map value, I use currently selected unit? That is I select 1 unit, the triggers apply and follow that unit, I select another unit, the camera starts following the new unit, I select a 3rd unit, it stops following the first two and applies for the 3rd, if I select several, the camera chooses 1 Random unit of currently selected and starts following that unit so that it doesn't cause confusion with multiple selection? (see above image for triggers, need to apply the triggers from Unit on the map to unit I currently select)
It should be "Unit from Unit Group." Choose unit 1 (or [random integer between 1 and Number of units in Selected Units] if you want to go that route, though I think unit 1 would make more sense to players). The unit group should be (selected units.)
Use a Variable, that can be later set to a specific unit on the map, created unit by triggers, be unit from selected units, other unit group or anything. Replace all where a unit on the map is used with the Variable in the RPG Vision triggers