View Full Version : NEED HELP OVER HERE!!!
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?
whisperFFW06
Nov 14 2001, 17:47
for the 1st question, if objectName is the name of the object you want your unit to go :
unit doMove getPos objectName
Should work....
thanks mate thats wot i needed.
anyone know an anser to the second q?
BUMP
Shirson
Nov 15 2001, 09:44
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)
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
@<hidden> _cam
~3
_cam camsetfov 2
http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/confused.gif??
plz tell me a bit more..
Shirson
Nov 15 2001, 11:16
</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
@<hidden> _cam
~3
_cam camsetfov 2
http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/confused.gif??
plz tell me a bit more..
[/QUOTE]<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
@<hidden> _cam
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
@<hidden> _cam
without any position? soz if i sound a dunce but ur not very clear.
Shirson
Nov 15 2001, 12:27
</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
@<hidden> _cam
without any position? soz if i sound a dunce but ur not very clear.
[/QUOTE]<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 http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/smile.gif ) 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
@<hidden> _cam ; wait for camera complete command
;--------------------------
(Edited by Shirson at 9:30 pm on Nov. 15, 2001)
thx sounds confusing but i will have a go.
Shirson
Nov 16 2001, 06:06
Heh http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/smile.gif
I test it @<hidden> home - perfectly http://www.flashpoint1985.com/ikonboard3/non-cgi/emoticons/smile.gif
_cam = "camera" camcreate getpos fred
_cam cameraEffect ["internal","back"]
_cam camsettarget fred
_cam camsetrelpos [0,5,10]
_cam camcommit 0
@<hidden> _cam
_cam camsetFOV 0.1
_cam camcommit 3
@<hidden> _cam
~3
_cam cameraEffect ["terminate","back"]
camDestroy _cam
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.