Home   Help Search Login Register  

Author Topic: Push ups continually.[solved]  (Read 3005 times)

0 Members and 1 Guest are viewing this topic.

Offline Kneehi

  • Members
  • *
Push ups continually.[solved]
« on: 19 Sep 2009, 00:50:49 »
Sorry guys, i could'nt find a good topic for this.
Hi to you all :)

How can i make a unit to do push ups continually?

I got this script to a cutscene, for example, but the man just do 2 push ups than stand up.
Hope you got some answers please..

Here it goes:

Code: [Select]
titlecut [" ","BLACK IN",3]

opdruk1 playmove "FXStandToDip"

enableradio false
_cam = "camera" camcreate [0,0,0]
_cam cameraeffect ["internal", "back"]

_cam camsettarget target1
_cam camsetrelpos [-80,100,7]
_cam camcommit 0
@camcommitted _cam

~2

blah blah blah insert the rest of the script here

~2

titlecut ["","BLACK OUT",2]

~2

_cam cameraeffect ["terminate", "back"]
camdestroy _cam
enableRadio true
exit



Sorry my bad English, BR here. :D
« Last Edit: 22 Sep 2009, 01:55:56 by Kneehi »
War ain't fair.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Push ups continually.
« Reply #1 on: 19 Sep 2009, 06:54:48 »
If I remember correctly there are two loons doing continual push-ups in the training mission of the Cold War Crisis campaign. You could depbo that mission and see how BIS did it.

I suspect a separate script which loops.

Offline haroon1992

  • Members
  • *
  • My life is hopeless...
Push It Up!
« Reply #2 on: 19 Sep 2009, 16:44:30 »
#loop
? ! (alive loon1): exit
loon1 playmove "fxstandtodip"
~6
;adjust the seconds to suite your needs.!
goto "loop"


And that's all!
Very busy with life, business, and other stuff. Away from OFP for months. Not sure if I could get back onto it. :(

Offline Kneehi

  • Members
  • *
Re: Push ups continually.
« Reply #3 on: 19 Sep 2009, 17:43:03 »
Haroon1992 In the very start of the script(the cutscene one) i put : push1 exec "pushups.sqs" which was the name i gave to your script.
but the guy do 2 pushups, than stand up, than do two more pushups, than stantd up again,and there it goes...

And please, where can i find a depbo program?
thanks guys.
« Last Edit: 19 Sep 2009, 17:57:46 by Kneehi »
War ain't fair.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Push ups continually.
« Reply #4 on: 19 Sep 2009, 22:22:21 »

Walter_E_Kurtz

  • Guest
Re: Push ups continually.
« Reply #5 on: 19 Sep 2009, 22:40:22 »
Continuous press-up loop; it takes three seconds for a unit to do two press-ups / push-ups
Code: [Select]
#begin
loon switchMove "FxStandDip"

~3.0
goto "begin"
As long as they don't need to be seen starting and stopping.

Offline haroon1992

  • Members
  • *
  • My life is hopeless...
Re: Push ups continually.
« Reply #6 on: 20 Sep 2009, 07:15:00 »
Quote
Continuous press-up loop; it takes three seconds for a unit to do two press-ups / push-ups
And that solves it!
Haroon1992........................
Very busy with life, business, and other stuff. Away from OFP for months. Not sure if I could get back onto it. :(

Offline Kneehi

  • Members
  • *
Re: Push ups continually.
« Reply #7 on: 21 Sep 2009, 01:41:11 »
So, you guys are saying that there is no way to make a unit to do push-ups continually, without standing up, than doing two more push-ups? :confused: ???
How sad :(

Thanks bedges, i found it in other place.
I had depbo the training mission. I realized that it is a little cofusing, but i can handle with that.
i just wanted to know how to do that  from a scrpt.
Thanks again.
« Last Edit: 21 Sep 2009, 02:40:16 by Kneehi »
War ain't fair.

Offline haroon1992

  • Members
  • *
  • My life is hopeless...
Re: Push ups continually.
« Reply #8 on: 21 Sep 2009, 10:46:12 »
Hey,if possible, why not post the script here......
So in the future, we can refer this thread to some one needing it...........or someone will able to find this thread via the search...
Haroon1992................................................................
Very busy with life, business, and other stuff. Away from OFP for months. Not sure if I could get back onto it. :(

Offline Kneehi

  • Members
  • *
Re: Push ups continually.
« Reply #9 on: 22 Sep 2009, 01:55:33 »
In fact, it is activated only by triggers, so, i can't put it into my script directly.
I think the problem is solved.
Thank you all again.
And again, sorry for my bad English, i'm Br.
War ain't fair.

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re: Push ups continually.[solved]
« Reply #10 on: 09 Oct 2009, 08:40:44 »
Here is a simple script that allows you to define the unit doing the pushups and how many pushups he will do.

Code: [Select]
_u = _this select 0
_n = _this select 1

~ random .5
_c = 0
_u switchmove "FXStandToDip"
~ 3
#loop
_u switchmove "FXStandDip"
~ 3
_c  = _c + 1
? _c < _n : goto "loop"

exit

Execution is like this: [pushupguy, 50] exec "pushups.sqs"

pushupguy is the unit who will do the pushups (name him whatever you like) and 50 is the number of pushups (you can change the 50 to whatever you want).

The random .5 at the start of the script allows you to have many units doing pushups but not in perfect unison (it looks dumb if they are doing them in perfect timing with each other). To execute the script on multiple units do something like this:

{[_x, 25] exec "pushups.sqs"} forEach units group pushupguy

This will make everyone in pushupguy's squad do 25 pushups.