Projective projection
Applying a change of coordinates, assume $P = (0:\ldots:0:1)\in \mathbb{P}^n$. The projection from $P$ is the rational map $$ \begin{align*} \mathbb{P}^n &\dashrightarrow \mathbb{P}^{n-1} \\ (x_0 : \ldots : x_{n}) &\mapsto (x_0 : \ldots : x_{n-1}), \end{align*} $$ which is defined everywhere except $P$.
If $Q \neq P$ in $\mathbb{P}^n$ and $Q = (q_0 : \ldots : q_n)$, then the line through $P$ and $Q$ is $$ \begin{align*} \mathbb{P}^1 &\to \mathbb{P}^n\\ (t:u) &\mapsto (t q_0 : t q_1 : \ldots : t q_{n-1} : tq_n + u), \end{align*} $$ which is collapsed to a point. We can identify $\mathbb{P}^{n-1}$ with $\set{x_n = 0}$ in $\mathbb{P}^n$.
This is a well-defined morphism on any subvariety $X \subseteq \mathbb{P}^n$ with $P \not\in X$. If $Z(F)$ is a hypersurface, then if $R = (r_0 : \ldots : r_{n-1})\in \mathbb{P}^{n-1}$ then the preimage of $R$ in $Z(F)$ is given by the locus where $F(r_0 : \ldots : r_{n-1} : x_n) = 0$, which is a union of at most $\deg F$ many points in $Z(F)$ (using $P \not\in Z(F)$).
However it can be possible that its restriction to a subvariety containing $P$ is a morphism: consider $π: C := Z(x_0 x_2 - x_1^2) \dashrightarrow \mathbb{P}^1, (x_0 : x_1 : x_2) \mapsto (x_0 : x_1)$, a projection from $P = (0,0,1)$. The other representation is $(x_1 : x_2)$.