HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Camera Scripting

05-05-2009, 02:36 AM#1
Dinipants
Hey everyone, I'm kinda new to JASS and am just learning to use it. So forgive my extreme noobiness but I know almost nothing about it.

I was wondering if someone could explain to me custom scripts, in particular the one Anitarf uses to script cameras. In his map he uses triggers such as :

call ScriptActCameraLock(t+8.0, 2, 0,0,200, false, 0.0)
call ScriptActCameraFace(t+8.0, 3, 0,0,0, false, 0.0)
call ScriptCameraStat(t+8.0, 9, 0.0, 200.0,0.0, 1) //9-distance to target, 1-instant change
call ScriptActCameraFace(t+8.1, 3, -500,0,0, true, 8.0)
call ScriptCameraStat(t+8.1, 9, 6.0, 1000.0,0.0, 2) //increase the distance to target over time

and I was wondering how you change the parameters so they are custom values instead of the original ones. i.e. make :

//function ScriptActCameraFace takes real time, integer actor, real xoff, real yoff, real zoff, boolean smooth, real duration returns nothing

Is there something in particular you have to do? Or some program you need? Or do you even need to do anything at all? Again excuse my incredible ignorance lol but I really have little to no idea. I want to use JASS mainly for cameras but do intend to try and start using it more regularly as I feel like I'm missing out on potential ideas utilising solely GUI triggers. Some help would be greatly appreciated, thanks in advance.
05-05-2009, 03:50 AM#2
Alevice
You would have to write a different function that supported those parameters, and code the behaviour. No magic trick, alas.
05-05-2009, 07:54 AM#3
Blackroot
As far as I know; antiarf uses his own camera library.

http://www.wc3c.net/showthread.php?t=79554

You'd had to script any kind of new function directly; although I'm not farmiliar with the supports of this system (look into the documentation)

Let me say this though; coding cinematics in jass takes some real patience ~ but it'll look alot better.
06-13-2009, 02:35 AM#4
Johnnaris
simulation credit


Thanks for sharing. It's great.