• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Cam1 Cam2 Cam3

Status
Not open for further replies.
Level 8
Joined
Oct 8, 2005
Messages
409
Event:
player types message containing "-cam" as a substring
Action:
If character 4-4 in message equals 1 then pan camera for triggering player to camera 1
If character 4-4 in message equals 2 then pan camera for triggering player to camera 2
If character 4-4 in message equals 3 then pan camera for triggering player to camera 3
 
Level 3
Joined
Jun 18, 2007
Messages
72
@famouspker49: i dont think so, ive used the following trigger camera controls for around 2 months now with absolutely no problems switching between different ones, ive never had to do anything like "turn off" a camera.

Well, first off you have to make camera's inside the game. Click Here for a very descriptive article on making a camera. After making the camera you want you will then have to set up some triggers (in your case since you want 3, you'll need 3 triggers. You can probably make just one trigger that deals with all, but that can get a little complicated and sometimes confusing so i would just go with 3 different triggers). There is most likely a better way to set this up, but i think its very easily put and easy to understand so i'll put the 3 triggers im using in my map for camera controls. I'll edit them so that they look like yours i.e. instead of my string i'll use Cam1 and Cam2, etc. Here ya go, hope this helps!
  • Cam1
    • Events
      • Player - Player 1 (Red) types a chat message containing -cam1 as An exact match
      • Player - Player 2 (Blue) types a chat message containing -cam1 as An exact match
      • Player - Player 3 (Teal) types a chat message containing -cam1 as An exact match
      • Player - Player 4 (Purple) types a chat message containing -cam1 as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -cam1 as An exact match
    • Conditions
    • Actions
      • Camera - Apply without panning cam1 <gen> for (Triggering player) over 2.00 seconds
  • Cam2
    • Events
      • Player - Player 1 (Red) types a chat message containing -cam2 as An exact match
      • Player - Player 2 (Blue) types a chat message containing -cam2 as An exact match
      • Player - Player 3 (Teal) types a chat message containing -cam2 as An exact match
      • Player - Player 4 (Purple) types a chat message containing -cam2 as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -cam2 as An exact match
    • Conditions
    • Actions
      • Camera - Apply without panning cam2 <gen> for (Triggering player) over 2.00 seconds
  • Far View
    • Events
      • Player - Player 1 (Red) types a chat message containing -cam3 as An exact match
      • Player - Player 2 (Blue) types a chat message containing -cam3 as An exact match
      • Player - Player 3 (Teal) types a chat message containing -cam3 as An exact match
      • Player - Player 4 (Purple) types a chat message containing -cam3 as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -cam3 as An exact match
    • Conditions
    • Actions
      • Camera - Apply without panning cam3 <gen> for (Triggering player) over 2.00 seconds
Now however many players is up to you, just depends on how many people can play your map. Also the "-cam1" can be anything you want and the "cam1 <gen>" is the name of your camera that you've made in the map. The "apply without panning" means that all that will happen is the person's camera will move closer or farther away, just depends on what the distance you've set the camera at. So if thats all you want then when making your camera all you will need to bother with is how far away the camera is from the surface of the terrain, it wont matter where the camera itself is set in your map. That will only matter if you say "apply". You can also specify how long it will take for the camera to reach its altitude (obviously thats located at the "over 2.00 seconds" part).
Word of advice: try not to make cameras that are too far away from the surface cause, depending on the map, it can cause some serious lag for whoever is using that camera. Good Luck!
 
Level 3
Joined
Jun 18, 2007
Messages
72
No problemo, i was always intrigued with camera stuff ever since i first knew you could even change the camera in custom games several years back when i started playing. So a couple months ago when i started de-constructing maps and finding out how they tic (i prefer reverse-engineering when trying to learn something) one of the first things i did was find out how to make camera's lol
 
Status
Not open for further replies.
Top