Jump to content
toxicsludge

Video Tutorial: Helmetcam liveFeed Addon & Script

Recommended Posts

Nice. Thanks for doing that.

Tiny correction though:

Only YOU need the tactical goggles (to be able to see the videofeed), but you can only see the videofeed from groupmembers with suitable helmets.

So if someone in your group wears a bandanna, you won't be able to get a livefeed from him.

Share this post


Link to post
Share on other sites

Guys thanks so much for this it works great except I am getting a Undefined Variable in this part of the script.

 

        if (name hcam_target != _old) then {
            _neck attachTo [hcam_target,[0,0,0],"neck"];
            _pilot attachTo [hcam_target,[0,0,0],"pilot"];
            _old = name hcam_target;
            hcam_cam cameraEffect ["INTERNAL", "BACK","rendertarget0"];
            HCAM_CTRL_TITLE ctrlsettext (name hcam_target);
        };

 

 

I hope we can fix it I would really love to implement this in my missions..

Share this post


Link to post
Share on other sites

Ah well, I haven't used or updated it for quite a while. I should probably make a reworked version of it due to all the new scripting commands that came out meanwhile.

 

Maybe I can get around to it in the next days.

Share this post


Link to post
Share on other sites

Well everything works just using the scripts in the mission folder I just get this undefined variable error, So its not as simple as a bracket or comma?

Share this post


Link to post
Share on other sites

Hmmm, what exactly does the error say ?

Share this post


Link to post
Share on other sites

It says undefined variable line 88

 

I opened the script with notepadd++ found line 88

 

copy and pasted the area that they referenced within the script.

 

I believe this was the exact area but I am going bt memory and it was tol long to write down

 

if (name hcam_target != _old) then {
            _neck attachTo

 

 

 

 

This is the paragraph or area of the script.

 

     if (name hcam_target != _old) then {
            _neck attachTo [hcam_target,[0,0,0],"neck"];
            _pilot attachTo [hcam_target,[0,0,0],"pilot"];
            _old = name hcam_target;
            hcam_cam cameraEffect ["INTERNAL", "BACK","rendertarget0"];
            HCAM_CTRL_TITLE ctrlsettext (name hcam_target);
        };

 

 

 

Also I read somewhere by the KK guy Killzone Kid I think his name is to try and turn on scripting errors that the error messages are then more descriptive and better.

Do you know how I can do this?

 

Thanks so much for your help...   :=)

Share this post


Link to post
Share on other sites

Here, try changing the above to this (first and last line added)

if (!isNil "hcam_target") then {
	if (name hcam_target != _old) then {
		_neck attachTo [hcam_target,[0,0,0],"neck"];
		_pilot attachTo [hcam_target,[0,0,0],"pilot"];
		_old = name hcam_target;
		hcam_cam cameraEffect ["INTERNAL", "BACK","rendertarget0"];
		HCAM_CTRL_TITLE ctrlsettext (name hcam_target);
	};
};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×