Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → How to set camera view on surface?
How to set camera view on surface?
2002-11-25, 8:29 AM #1
1)I want to create something like a mirror(for example). I set a camera and set a surface. The view FROM the camera will be shown ON surface. It will be like an "anim mat".(camera views to you and you see yourself at the surface).
2)And one more thing: how to create this one:
If you activate a thing(or surface, pressing space button)- something will be changed
for example:
code:
"If (inuse=1) or something like that"
Setcamerafocus(.....);
Setcurrentcamera(0);
Slep(9999999999999999999999);
return;
end
2002-11-25, 8:35 AM #2
No, you cant do that. There isnt any way to make a surface display a camera. It just isnt possible. The only way to do "mirrors" in JK is to mirror the sector behind the surface, and make the surface translucent.
And when the moment is right, I'm gonna fly a kite.
2002-11-25, 9:56 AM #3
Thanks, and what about if (inuse=1)....
2002-11-25, 10:12 AM #4
You might want to type:
if (inuse == 1)

= is the assignment operator
== is the comparison operator

-RayNbow
-RayNbow
2002-11-25, 10:42 AM #5
Well sure...

Code:
Symbols
Message Any

Int Inuse=0   Local   #Should equal 0 at start, and be local so you cant change it in JED.

End
Code

Any:

If(Inuse == 1) Stop;  //If Inuse is qual to 1, Stop.  Otherwise, go on.

Inuse=1;  //Inuse now equals one.  The following code will only execute once.

Setcamerafocus(0, Cam);  //Setting the internal camera to a ghost.

Sleep(10);

Stop;


Oh, btw, WTF do you want the system to wait for 1,520,833 years? It just doesnt make any sense. By the time the sleep had ended, you would be LONG dead. Along with the rest of mankind, most likly. But in any case, JK could not handle such a large number. THe Sleep() function is in seconds, btw, not nanoseconds.
And when the moment is right, I'm gonna fly a kite.
2002-11-26, 3:48 AM #6
I think JK might automatically truncate that number to an acceptable one.

Although, That is funny [http://forums.massassi.net/html/wink.gif]

- Wisdom is 99% experience, 1% knowledge. -
2002-11-26, 7:47 AM #7
GBK, about Sleep(999999999999) I was kidding.
2002-11-26, 11:05 AM #8
i dont see why u just dont use a ghost position
-------------------------
It's Me, It's Me, It's TQB
-------------------------
2002-11-26, 12:57 PM #9
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Starkvad:
GBK, about Sleep(999999999999) I was kidding.</font>



You have a odd sense of humor...

Quote:
<font face="Verdana, Arial" size="2">Originally posted by TheRock:
i dont see why u just dont use a ghost position</font>


There is a little concept Id like to introduce you to . . . Thing conservation...
And when the moment is right, I'm gonna fly a kite.
2002-11-27, 2:11 AM #10
wha...and on ya, GBK, i went back to lpaying JO, thanks for all ur help =)
-------------------------
It's Me, It's Me, It's TQB
-------------------------

↑ Up to the top!