ok guys... i found this script for a vertical mirror. how do i use it? how do you turn this into an action for a entity? i use c-script btw.
VIEW* mirror =
{
layer = 10;
}
function mirror_startup()
{
while (!player) {wait (1);}
camera.portal = mirror;
set (mirror, NOSHADOW); // suppress shadows in the mirror
set (mirror, NOPARTICLE); // suppress particles in the mirror
set (mirror, PORTALCLIP); // clip at portal plane
while (1)
{
proc_kill(4);
mirror.genius = camera.genius;
mirror.aspect = camera.aspect;
mirror.arc = -camera.arc;
mirror.x = camera.x;
mirror.y = camera.portal_y - (abs(camera.portal_y - camera.y));
mirror.z = camera.z;
mirror.pan = -camera.pan;
mirror.tilt = camera.tilt;
mirror.roll = camera.roll;
wait(1);
}
}
Last edited by Blink; 07/15/10 21:08.
My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
|