Jump to content
Sign in to follow this  
SouthSaturnDelta

detect view

Recommended Posts

I know the turn animations are only played when in 3rd person view (eg "amovpercmstpsraswrfldnon_turnl"), but that requires the player to be turning (and I don't know how it works in MP either). I'm trying to a better test working, checking if a vector drawn from the players head intersects with his "view" lod, but the view lod seems to return nothing (no named selections?).

edit :

positionCameraToWorld [0,0,0] reports the camera's world positon. Try something like :

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">if (getPos player distance (positionCameraToWorld [0,0,0]) >= 2) then {3rdPersonViewActive = true}

Players in vehicles will probably need different tests.

Share this post


Link to post
Share on other sites

Thank you so much Fasad - would have never thought of that. notworthy.gif

Have the command working well for inf, now to experiment with various vehicles.

SSD

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×