OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Grinning_Giant on 08 Jul 2003, 15:00:02

Title: "Schlow down! You can't rush these thingsh"
Post by: Grinning_Giant on 08 Jul 2003, 15:00:02
Hey Chaps.

I'm making a cutscene which uses the "DoMove" Command

I want my AI character to move to a Logic called "BossChat", and I want him to do it slowly.

here is an excerpt from my code:

Code: [Select]
_Unit2 setSpeedMode "LIMITED"
_Unit2 doMove getPos BossChat

I exec this and "_Unit2" still runs to the BossChat logic. What do i need to do to make him Schlow Down?

(http://homepage.ntlworld.com/topchris175/Pictures/Schtop.JPG)
Title: Re:"Schlow down! You can't rush these thingsh"
Post by: Tomb on 08 Jul 2003, 15:33:18
 :) a normal "limited" WP with a "Careless" behaviour should do it, m8

but if you wanna use a slow walk (playmove/swissccchhhmove..), try this :


  bob setDir 234; bob playmove "standWalkF"

 or some of those similar spells - check the referrence!  :-*

Title: Re:"Schlow down! You can't rush these thingsh"
Post by: Grinning_Giant on 08 Jul 2003, 15:47:59

Cheers Tomb...

I guess I'll have to use a waypoint. The playmove will require loops and I just can't be arsed  ;)


BTW "_Unit2" is a civilian.
Title: Re:"Schlow down! You can't rush these thingsh"
Post by: Tomb on 08 Jul 2003, 16:06:21

Cheers Tomb...

I guess I'll have to use a waypoint. The playmove will require loops and I just can't be arsed  ;)


 ;D LOL

 :o But you SHOULD be arsed, man!  >:( :D - 'tis the only way to supercool missions/cutScenes etc.  8) :-*

An' it doesn't take much:

                [bob] exec "play.sqs"

...and the scroll  goes...

=================================
#Play
? endit: exit
unitName playmove "EffectStandTalk"
~0.2
goto "Play"
=================================

so when "endit" becomes true in some trigger or whatever, the scroll ends! simple as that, m8
put it in the mission folder and let bob fire it - you WILL do that!  >:( ;D ;)