dmay 0 Posted December 20, 2002 three things I'm trying to do I need help with before I go insane: (searched but couldn't find anything usefull) 1, How do I return a map coord (x,y,z) to the player when stepping through a trigger? (so I can do a camcreate at the same possition) 2, What do I need to put in my script to create a camera inside the cockpit of a plane (following a waypoint) so I can see the pilot flying it with a duration of several minutes? 3, Is there a way to have a waypoint appear to the player only when a condition is met such as a trigger activated? (I tried setting the waypoints condition to false but it still appears as soon as the game starts) Thanks in advance Share this post Link to post Share on other sites
ralphwiggum 6 Posted December 20, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (dmay @ Dec. 20 2002,19:50)</td></tr><tr><td id="QUOTE">2, What do I need to put in my script to create a camera inside the cockpit of a plane (following a waypoint) so I can see the pilot flying it with a duration of several minutes?<span id='postcolor'> there should be a command called 'camsetrelpos' in official command reference. Share this post Link to post Share on other sites
Bren the ruler 0 Posted December 21, 2002 for question 1, say your making an explosion at the same position as somebody all you do is explosion = "shell125" camcreate getpos playername or man setpos getpos playername or man setpos (getpos playername) Share this post Link to post Share on other sites
dmay 0 Posted December 21, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">explosion = "shell125" camcreate getpos playername <span id='postcolor'> yes I know that but I would like to know how to see the x y z of the players possition in the map so I can do a camera script like: _camera = "camera" camCreate [8000,4000,74] _camera cameraEffect ["internal","back"] setacctime 1.0 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">there should be a command called 'camsetrelpos' in official command reference.<span id='postcolor'> Ahh, yes so there is, _camera camSetRelPos [10,5] that should help, thanks RalphWiggum While messing around with a few things I've discovered you can moveincargo or moveindriver a game logic unit so the player can't drive a vehicle or when made to 'get in back of truck' he will do instead of the passanger side. Just thought I'd share that with you. Share this post Link to post Share on other sites
dmay 0 Posted December 21, 2002 Hmm, camsetrelpos doesn't work, this is my script: _camera = "camera" camCreate getpos pilot _camera camSetTarget getPos pilot _camera camSetRelPos [10,5] setacctime 1.0 enableRadio false ~10 player cameraEffect ["terminate","back"] camDestroy _camera Over=true All I get is 'generic error in expression' when it is run. Share this post Link to post Share on other sites