Rob 1 Posted November 14, 2001 2 q's. 1)how do i make a script to order certain units to move to specified objects without making wp's? i did this along time ago but now i have forgotten and seriously need to find out. 2)how do i make the camera stay it its exact relpos but zoom in with having to specify a new relpos? Share this post Link to post Share on other sites
whisperFFW06 0 Posted November 14, 2001 for the 1st question, if objectName is the name of the object you want your unit to go : unit doMove getPos objectName Should work.... Share this post Link to post Share on other sites
Rob 1 Posted November 15, 2001 thanks mate thats wot i needed. anyone know an anser to the second q? BUMP Share this post Link to post Share on other sites
Shirson 0 Posted November 15, 2001 for zoom camera use <camname> camSetFOV <number> Default number = 0.7 (i think) for zoom in decrease number (ex. 0.05) for zoom out - increase (ex. 2) Share this post Link to post Share on other sites
Rob 1 Posted November 15, 2001 so if i wanted to make the cam set its target to fred and zoom in i would use.... _cam camsettarget fred _cam camsetrelpos [0, 5, 10] _cam camcommit 0 @camcommitted _cam ~3 _cam camsetfov 2 ?? plz tell me a bit more.. Share this post Link to post Share on other sites
Shirson 0 Posted November 15, 2001 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from Rob on 8:04 pm on Nov. 15, 2001 so if i wanted to make the cam set its target to fred and zoom in i would use.... _cam camsettarget fred _cam camsetrelpos [0, 5, 10] _cam camcommit 0 @camcommitted _cam ~3 _cam  camsetfov 2 ?? plz tell me a bit more.. <span id='postcolor'> _cam camsetrelpos [0, 5, 10]; relpos from what? _cam camsettarget fred _cam camsetfov 0.2; Set camera Field of view (zoom). Does not commit changes (!) _cam camcommit 3 ;3 secconds camera zoom in to Fred @camcommitted _cam Share this post Link to post Share on other sites
Rob 1 Posted November 15, 2001 wot do u mean setrelpos from wot.... from fred obviously... ur supossed to set target fred. the the position of the cam then how long u want it to commit........ so u telling me that all i have to add is _cam camsettarget fred _cam camsetfov 0.2 _cam camcommit 3 @camcommitted _cam without any position? soz if i sound a dunce but ur not very clear. Share this post Link to post Share on other sites
Shirson 0 Posted November 15, 2001 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">Quote: from Rob on 8:39 pm on Nov. 15, 2001 wot do u mean setrelpos from wot.... from fred obviously... ur supossed to set target fred. the the position of the cam then how long u want it to commit........ so u telling me that all i have to add is _cam camsettarget fred _cam  camsetfov 0.2 _cam camcommit 3 @camcommitted _cam without any position?  soz if i sound a dunce but ur not very clear. <span id='postcolor'> Ok, what u need: "so if i wanted to make the cam set its target to fred and zoom in i would use.... " Full script ;-------------------------- _cam = "camera" camcreate getpos fred ; Create camera on freds position. _cam camsetrelpos [0, 5, 10] ; Move camera up and forward (or backward... dont remember, sorry ) from Fred _cam camsettarget fred ; Set target camera to Fred _cam camcommit 0 ; Set changes to _cam instantly ; We have camera looking to Fred ; Now, make camera zoom in to Fred _cam camSetFOV 0.1 ; Set zooming to _cam _cam camcommit 3 ; Set changes to _cam. Camera transition zooming to Fred from normal view to zoomed view in 3 seconds @camcommitted _cam ; wait for camera complete command ;-------------------------- (Edited by Shirson at 9:30 pm on Nov. 15, 2001) Share this post Link to post Share on other sites
Rob 1 Posted November 15, 2001 thx sounds confusing but i will have a go. Share this post Link to post Share on other sites
Shirson 0 Posted November 16, 2001 Heh I test it @ home - perfectly _cam = "camera" camcreate getpos fred _cam cameraEffect ["internal","back"] _cam camsettarget fred _cam camsetrelpos [0,5,10] _cam camcommit 0 @camcommitted _cam _cam camsetFOV 0.1 _cam camcommit 3 @camcommitted _cam ~3 _cam cameraEffect ["terminate","back"] camDestroy _cam Share this post Link to post Share on other sites