Added: 2 years ago
From: keefygeorge01
Views: 4,640
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (46)

Sign In or Sign Up now to post a comment!
  • Comment removed

  • is there a way i can set a time limit for the loop?

  • also on more thing and i know its long but how can you make it where when its a cutscene but still first person you can move your head but your bodys locked thanks

  • Hey keefy i thank you so much for these vids they really helped but one thing im wondering is how can i make it go to a cutscene mid play? like say your moving to a village and your actually playing but then right before your attacked i want it to go to a cuitscene showing the enemy moving? do i set it up via a trigger and name the trigger and activate it in the script or what cause im just not sure how to make it trigger at a certain time

  • I have one question for you. When you place the camera where you want it.

    camPrepareTarget [-55102.08,84473.38,19.82] <<Where do you get the numbers from..

  • i cant get it out of the loop ive copied your code conpletly but instead of the distance between two people i have it set to go to the next scene with when the humvee reaches a persone at a certain distance

  • @willins12 never mind was a problem with the text type my bad works though thanks for the videos

  • Can I change or remove the Depth of field?

  • Very nice! I just wonder if there isn't a way to use soft variables and an increment inside the script in place of the "man1 distance man2" setup? Would sure be handy, especially for more complex settings to do "c1=0" in the beginning of the script, "c1=c1+1" each time the loop runs and switch it with "? c1 = 30 : goto "nextscene"

    No way to do this?

  • Hey thanks 4 these videos all my OFP memory's of cam scripting came back to me and nw I should be able to start making campaigns again. Great vid btw best scripting tutorial I've ever found

  • Спасибо большое друг = Thank you friend.

  • ah, here we go laddie, thanks for a the help keefygeorge! :'D

  • Right, I've seem to run into a problem. I can get all the way up to following the HMMWV just fine, but as soon as I start entering more code to stop like it does at 4:59, it bugs on me. Instead of targeting the HMMWV (car1) it hovers over it and aims northward and does not follow. It did this before when trying to get it to focus on car1, but I have no idea how it was fixed because all I did was change a number from 3 to 2 for distance. So I have no idea whats going on.

  • having issues with getting the camera to stop. It switches to the misstion but the camera remains attached to the boat im using. If i boot it up on the server the intro dose not load :S

  • @Pantora1

    If you want it to run on a server you need to make sure the scene runs local on client machines.

    I dont use the intro section for MP missions. I do the scene in the mission section and run the scene from the init.sqf

  • I managed to get the attach & loop to work, but only once. If I try to attach/loop on a different unit the camera doesn't move to the new target and just detaches from the old unit. Any ideas what's happening?

  • thanks for these videos man, they're really helpfull

  • Hey, does this work with ArmA: Armed Assault?

  • @1nvalid1

    Yea mate sure does

  • this sux tho in the steam version you cant get to the script folder

  • @combly7 You don't actually need script folder. Just put the script into the same folder as mission.

  • Thanks for these videos!! I have my campaign intro, cutscenes and outro working great!

    Thanks!!!

  • Nice tutorial, just couple questions. How do I turn on the camera when I want? Ive seen a tutorial that u can turn on the camera through radio chat, but cant find it. And Can you make a tutorial on (if possible) to make the camera move around or follow going side to side of the object ur fallowing? Or just make it movable with mouse whle fallowing?

  • @Aaidas2 How to turn on the camera at will - set a trigger with on act. set to: player exec 'camera.sqs' :have the trigger set to activate on radio alpha, accessed by going backspace, 0, 0, 1. Hope that helps.

  • Yeah, I did. I'll fiddle around it later and see what happens. I copied and pasted what you had in one of your first videos at the bottom, so I'm not exactly sure what wrong. The camera will just pause were I have my last scene, nothing happens. Thanks for the response.

  • Thanks you so very much for these videos, very helpful. I have a question though. These show me how to do the intro, then once its done it will play the mission part. I want the scene to be played during the mission. I managed to do that, but once all the scene has finished play, the camera just pauses were it is, and will not return to player. Can you help me so that once the scene is finished that it will go straight to the player? Thank you.

  • you need to destroy the camera and exit the script.

    did you put

    exit;

    at the bottom of the script. Doing so should exit the script and return to the player.

  • @Bezzguy

    If you only want the scene to play for the person who sets off the trigger that will work.

    If you want it to play for every player in game use a trigger to set a condition to true in the init for example.

    Place a trigger and in the on activation put something like, scenecondition = true;

    The in the init.sqf put:

    scenecondition = false;

    "scenecondition" addPublicVariableEventHandler {player exec "scene.sqs"}

  • very good tutorials. i am a noob to arma2 but your vids have helped alot.

    I have a question about applying these scenes to a mission.

    I have a mission made and ready to go but how do I add the camera scene to the beginning of the mission and then have the mission begin when the scene ends?

  • It depends wether its a single or multiplayer mission

    if its single just open the mission in the editor and in the top right change it from mission to intro and create the scene.

  • @keefygeorge01

    thanks. will give it a try

  • hey bud, i made the intro as you said and have saved the scene.sqs under a script folder in my documents/arma2. problem is when i open the mission in the scenarios it says 'script scene.sqs not found' and then just shows a video of the back of the players head!

    any suggestion?

  • in arma2 other profiles go into the subfolder and create a folder named scripts..place your script there

  • oh and is there a way to make it fade out at the end?

  • whenever end1 is activated it goes back to the editor and doesn't begin the mission :(

  • thanx again :)

  • the line looks like that;

    ? time >=10 : goto "nextscene"

    goto "loop"

  • Thanks for that ill give that a try.

  • Comment removed

  • did it worked? well i have an issue with it, i cant make lets say, 3 scenes, or more, at same vid. i can make only 2, couse when i make 3 cam. folowing the units, the first one folows that what i want, and there a now second one, its jums strate to thirt one. do u have eny tips? and im sorry for my bad language :D

  • My guess is there is no timer set for the second camera and it is jumping to the 3rd.

    Paste the script into a pm and ill have a look if you like.

  • hey buddy, thanx for tutorials :) its really cool, i found somethink else with the next scene, abit easyer, then with two guyzz distance :)

  • NEED TO KNOW HOW TO DO SFX like rocking camera and such.

  • I can help you with sound but im not sure about the rocking camera.

    For sound you need to create a:

    Class CfgSound in the description.ext

    then you can add the sound in the script where you want it to play

    Go to next post

  • For example:

    playsound "sound class name";

    Then if you want the sound to fade add:

    5 fadesound 0;

    playsound "";

    0 fadesound 1;

    The forst number being the amount of time it will take to fade.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more