OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: WAKA-WAKA on 20 Jul 2004, 17:55:01

Title: Moving during cutscene
Post by: WAKA-WAKA on 20 Jul 2004, 17:55:01
How do u make a player move during the intro, when you want him to, without a waypoint. Or create a waypoint in the cutscene.sqs script, so he moves right after he say something?

Like

titlecut ["Time to kill some Soldiers","PLAIN",2]
~0

_cam camsettarget truck
_cam camsetrelpos [0,15,0]
_cam camcommit 0
@camcommitted _cam
~4

then i want him to move now.

Also can u make him move to an object or player, or do u have use courdinates?

Thanx
Title: Re:Moving during cutscene
Post by: Artak on 20 Jul 2004, 18:23:14
Use the move or domove command. You can use them with a set of coordinates or getpos an object coordinates.

titlecut ["Time to kill some Soldiers","PLAIN",2]
_cam camsettarget truck
_cam camsetrelpos [0,15,0]
_cam camcommit 0
~4
truck move getpos objectname

btw, 0 seconds delay is as good as nothing and @camcommitted _cam is also good for nothing after a 0 seconds commit time.
Title: Re:Moving during cutscene
Post by: Dubieman on 20 Jul 2004, 20:37:43
Why don't you use Messiah's tut on camera.sqs and the world of camera scripting as we know it (setarget d setrelpos 1,1,1) is made leagues easier.

I tried it and now I'm makin cutscenes like that.
*snaps fingers* :)

Yea or you can use delayed triggers too but domove and move work much better. :P
Title: Re:Moving during cutscene
Post by: WAKA-WAKA on 28 Jul 2004, 02:22:37
THANX GUYS