Jump to content
Sign in to follow this  
Ixian

Making units do excercises.

Recommended Posts

I thought I remembered seeing it in these forums but cant find it.

Where can I get a script to make units do pushups? And is that all the excercises you can make them do or is there some more?

Thanks

Share this post


Link to post
Share on other sites

I did already do a search and just did it again to double check. I searched for all forums also and the only thing that came up was this post.

Share this post


Link to post
Share on other sites

at the near bottom of search form, there should be

SEARCH FROM: This month and older/newer.

did you check "older" for that? i found two threads. i don't say search without actually looking up for one.

Share this post


Link to post
Share on other sites

xmas.gif doh

its easy just example

-name a solgier MyGuy

-Create a trigger and in the "On Activation" line put

-MyGuy switchmove "FXStandDip"

he will then do about 3 push ups then stand back up i,m not sure how to make him to them for longer

Ok, I did this and The guy like he says only does 3 then gets up and takes his weapon out. Another guy said to make trigger Repeat so I set it and it doenst work. Is there something I can type into the ON Activiation feild to make him stay down and keeping doing them?

Share this post


Link to post
Share on other sites

using a script seems to be my way, but from top of my head, my advice(not tested)

make a trigger that detects side of soldier you want in 'present' 'always'(or whatever that one that let's you do it always)

and put this in sctivation field:

MyGuy switchmove "FXStandDip";MyGuy setbehaivour "CARELESS"

the trigger area should include the guy who is supposed to do pushups.

if this doesn't work, use scripts.

fitness.sqs

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_sld = _this select 0

#acction

_sld switchmove "FXStandDip"

~3

_sld setbehaviour "CARELESS"

goto "acction"

exit

<span id='postcolor'>

i don't know how long the guys do push ups, so i set it at 3 seconds. (~3) if it's longer or shorter, adjust accordingly.

then in init field of that soldier, put

[this] exec "fitness.sqs"

hope this helps

edit: typos corrected; "Acction" is purposely misspelled. wink.gif

Share this post


Link to post
Share on other sites

Well that first idea is like the others. And it cant find the script for the 2nd one which is a first. Plus you had some spelling errors in there.

Share this post


Link to post
Share on other sites

I had your problem and had to write a script to overcome it,

1/ set a waypoint for the man, on top of him, and set his behavior to carless, he will start the mission with his weapon on his back.

2/give him a name, guy, guy1 etc if more than 1 man.

3/ put this script in the mission file

#update

~30

_obj = _this select 0

_Obj SwitchMove "FXStandDip"

goto "update"

you can reduce the time to make them do continual pressups, but this way they will do 3 every 30 seconds.

This script is good with opfpr 1.91

4/ enter [guy] exec "whatever you called the sript file.sqs"

Hope this helps

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote ([sWAF]Lunatic @ Jan. 13 2003,20:07)</td></tr><tr><td id="QUOTE">I had your problem and had to write a script to overcome it,

1/ set a waypoint for the man, on top of him, and set his behavior to carless, he will start the mission with his weapon on his back.

2/give him a name, guy, guy1 etc if more than 1 man.

3/ put this script in the mission file

#update

~30

_obj = _this select 0

_Obj SwitchMove "FXStandDip"

goto "update"

you can reduce the time to make them do continual pressups, but this way they will do 3 every 30 seconds.

This script is good with opfpr 1.91

4/ enter [guy] exec "whatever you called the sript file.sqs"

Hope this helps<span id='postcolor'>

all u have to dot is make a waypoint with that stuff in the on activation pint and make another one real close and CYCLE THEM make SURE there close and he will stay doing them

11397399.jpg

Share this post


Link to post
Share on other sites

Ixian,

Name your guy (guy1)

make a trigger with axis a zero, axis b zero.

on trigger condition put:

alive guy1

on trigger activation put:

guy1 switchmove "FXStandDip";guy1 witchmove "FXStandDip"

Put switchmove "fxstanddipt" several times. Make sure (;) between each but none on the end. I put about 8 or 9 times.

I've done this with 8 guys, it works perfect. they do a lot of pushups. many as u want.

Good Luck,

Ken

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×