OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BrAinOfJ on 01 Aug 2004, 11:23:33
-
Im making an intro, in which a guy walks up to a point, then all he has to do is get out some binoculars, and look through them for 2 or 3 seconds, just long enough for the viewer to get the idea that he's looking through binoculars....
after that it will cut to a CutRsc view and the viewers will see what he's looking at, this bit ive got downpat, but getting the stuupid guy to hold the binoculars is proving harder than it should be, ive tryed all the switchmove commands i could find, and ive even tryed dofire after selcting them, but all he does is bring them to his eyes, then resets...
How do i make him hold them, and look through them ?
-
You can do it in a script
First bit, playmove the combattobinoc or something
Then look a switchmove of the same anim with a delay of about 1 second
That should work..
Maybe if you use
unit selectweapon binoculars
That would be an easier way.. But I think they swithback to quicly
The first way shoud be fine tho
- Ben
-
Im using this script i found after doing a search through the FAQ, ive modified it for my situation, by changing only the guys name to cp1 (civilianpoliceone, gotta love the logic)
binocs = false
#loop
cp1 playmove "CombatToBinoc"
~0.01
?(!binocs): goto "loop"
exit
Still not doing anything... thinking about putting soviet guy next to him just to see him blown away and perhaps grap a little satisfaction.... :P
-
Or camcreate a laserguidedbomb next to the git :P
Anyway, either way is good...
:p
I think da problem is that your using playmove.. Use switchmove
And increase the delay a tiny bit..
The playmove will only show the first 100th of a sec of the bincoc thing.. Not enough for him to take out the binoculars..
Swithmove will instantly take out them
- ben
-
You could edit the scene so that as he brings them to his face it goes to binocular view so you dont see him putting them away? ;)
-
...
unitname selectweapon "binocular"
...should work.
-
Just for closure, ive had to change the timing so it works...
I tryed everything you guys mentioned, but nothing gave the desired result, in the end i went back to what i originally did, and what blanco mentioned in the end, and i took jaspers advise, by cutting only 1 second earlier, you wont see him take them down.
Thanks heaps for the input guys.