OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: seanver on 30 Oct 2002, 23:08:20

Title: switchmove and playmove
Post by: seanver on 30 Oct 2002, 23:08:20
I'm making a cutscene and I want two guys to put their hands on their heads, surrendering. Nevertheless, if I use switchmove, they put their hands automatically, without playing an anmiation. But if I use playmove (which is, as far as I know, to show an animation) they just don't do anything. Any idea? What can I do?

This is the code, if it helps:

Code: [Select]
pol1 say "Voice5"

~3


dav playmove "FXStandSurUniv"
hino switchmove "FXStandSurUniv"


~4



Edit:

Although yo ucan see I've used both commands, I only have done that to see which works in the cutscene.
Title: Re:switchmove and playmove
Post by: Tomb on 31 Oct 2002, 00:41:54
Some codes are switch, some are play...  :-\ ( ::) ;D )

 - not really much to do 'bout that, m8  :-\ :)

All ya can do is try the most reasonable ones and see if some of 'em
will work as playmoves.... then switch to the FX_thingy.

hint - most "FX_something" spell are switchmoves while "Effect..." are plays.  :)



Title: Re:switchmove and playmove
Post by: seanver on 31 Oct 2002, 00:49:11
Hmmmm so there is nothing to do to make a good surrendering scene?
Title: Re:switchmove and playmove
Post by: Tomb on 31 Oct 2002, 00:53:20
well, actually.... ( *thinks loud* )


awww, sh*t, this smells like sample mission time again  ::) ;D

hold on, m8 - I'll see if I can dig up some old sample for ya, lazzy!  :-*


Title: Re:switchmove and playmove
Post by: seanver on 31 Oct 2002, 00:56:54
waiting for it  ;)
Title: Re:switchmove and playmove
Post by: Tomb on 31 Oct 2002, 01:40:23

 :D OK - time's up, matey! Found a way, but I had'a tweak an old sample of mine
to get the job dunny-done! I'm afraid ya need the RES upgrade 1.75 to see this  :-\

Download, unzip to OFP/Users/YerName/Missions-folder.
Then load Desert Island - no addons  8) ;)


PS click on the WP's for the hostages to see the trick.
and note the exact delay (the 3 "timeout" fields in the wp's)

Laterz  :-*

Title: Re:switchmove and playmove
Post by: seanver on 31 Oct 2002, 01:53:59
Thanks!! It works perfectly!   :D