1. I was just playing around with running a prefab FX and moving it out from player, the Vector3.forward gives me world forward, not players view forward.

    ex...Effect.server.Run(prefab, player.transform.position + Vector3.forward )

    I tried a few things, but nothing seems to give me forward from players view. Not sure if I'm missing something simple offhand.

    Or do I need to have it calculate out everything for players view angle and raycast hit type of stuff (I sure didn't want to have to logic too much tonight :) )
     
  2. Calytic

    Calytic Community Admin Community Mod

    Perhaps..
    Code:
    player.eyes.BodyForward() * 2
     
  3. yes, works perfect. thank you.

    wanted to run FX prefab out a little in front of players view. :)

    ex...Effect.server.Run(prefab, player.transform.position + player.eyes.BodyForward()*20));
    that and player.eyes.HeadForward seems to work too.