Home   Help Search Login Register  

Author Topic: how do i make a man sit down?  (Read 1047 times)

0 Members and 2 Guests are viewing this topic.

SS_hunter

  • Guest
how do i make a man sit down?
« on: 05 Apr 2004, 07:09:41 »
 :-\sry ppl i'm a total n00b editor but how u make a soldier sit down?
 

SS_hunter

  • Guest
Re:how do i make a man sit down?
« Reply #1 on: 05 Apr 2004, 07:22:59 »
som1 plz help  :-\

max_killer_payne

  • Guest
Re:how do i make a man sit down?
« Reply #2 on: 05 Apr 2004, 08:02:51 »
man playMove "EffectStandSitDown"

SS_hunter

  • Guest
Re:how do i make a man sit down?
« Reply #3 on: 05 Apr 2004, 08:25:05 »
not workin death any thoughts?

SS_hunter

  • Guest
Re:how do i make a man sit down?
« Reply #4 on: 05 Apr 2004, 08:31:31 »
i put it in the initialazation bar... do i need to put it on a waypoint's on activation? n00b lost needing help  :P

i put

man playMove "EffectStandSitDown"

exactly that...spelling mistake mabe i dunno help plz  ;D

max_killer_payne

  • Guest
Re:how do i make a man sit down?
« Reply #5 on: 05 Apr 2004, 08:36:13 »
errm, just to clarify,

Man is the name of ur unit. So don't neccessarily put man.
You would have to name ur unit to man.

Or I normally do this stuff by scripting.

SS_hunter

  • Guest
Re:how do i make a man sit down?
« Reply #6 on: 05 Apr 2004, 08:42:16 »
okok so lets say i named the unit man
and put
man playMove "EffectStandSitDown"

then he should sit down right?

coz all he does is hit the deck and look around.

what i'm aiming 4 is just to make 3 east soldiers sit round a fire.

max_killer_payne

  • Guest
Re:how do i make a man sit down?
« Reply #7 on: 05 Apr 2004, 08:50:08 »
Hmmm, this is strange  ???

okay, okay. Just download the attached file, copy it into:

My Computer>Program Files>Codemasters>OFP>Users>*User name here*>Missions>*Name of ur mission*

and then in your game type in the init field of the man

[] exec "sitdown.sqs"

SS_hunter

  • Guest
Re:how do i make a man sit down?
« Reply #8 on: 05 Apr 2004, 09:05:46 »
lol i bet i doing somfin wrong but this is what i did

right click sitdown.sqs
save as sitdown.sqs
save to selected folder
(I got it as a notepad file) is that a problem? <<
send it to user mission folder
select man (called man)
init: [] exec "sitdown.sqs"

and hes still hiting the floor and lookin round!  ???
i think u know what ur doing so it must be me  :-\

SS_hunter

  • Guest
Re:how do i make a man sit down?
« Reply #9 on: 05 Apr 2004, 09:09:53 »
lol man i know we can do this

it must be annoying trying to get somthing thats probably so simple through to my noob mind...


SS_hunter

  • Guest
Re:how do i make a man sit down?
« Reply #10 on: 05 Apr 2004, 09:37:04 »
IT WORKS!! :)

thanks 4 da help death

max_killer_payne

  • Guest
Re:how do i make a man sit down?
« Reply #11 on: 05 Apr 2004, 09:38:04 »
lol. Dont worry about it. You never learn unless you ask. Well, you can use it as a notepad format, but i prefer not to, as its not very reliable. I suggest you get into scripting then you can enhance your missions dramatically. I'll give u a link this should make sure the files automatically are in the .sqs format, and also gives you a great mission editing tool.

http://www.CHenderMan.com/CHOFPSE.htm

Then once its installed the file should be different if not, right click on it and go to Open With, Choose program and Chris Script Editor you can then save it to your mission folder, via the editor, and then type in [] exec "sitdown.sqs" in the units init. That should work

max_killer_payne

  • Guest
Re:how do i make a man sit down?
« Reply #12 on: 05 Apr 2004, 09:38:41 »
lol, dam, missed u by 1 minute. I still reccomend u download the script tool though.

SS_hunter

  • Guest
Re:how do i make a man sit down?
« Reply #13 on: 05 Apr 2004, 10:10:23 »
k thnx i'll dl it

But they only sit down for random periods  >:(
heheh just my luck

SS_hunter

  • Guest
Re:how do i make a man sit down?
« Reply #14 on: 05 Apr 2004, 10:11:55 »
i just keep copy pasting the file and editing man to man1 man2 man3 and make them exec sitdown1.sqs sitdown2.sqs  ;D probably an easyer way but thats all my n00b brain could come up with.

max_killer_payne

  • Guest
Re:how do i make a man sit down?
« Reply #15 on: 05 Apr 2004, 11:57:40 »
Yeah a lot easier way, in the script just put man2 playMove "EffectStandSitDown" and man3 playMove "EffectStandSitDown", then you just need to get one man to exec the script and they all sit down. There is an easier way using the selectthis command thing, but its a bit complicated if ur just starting scripting.

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re:how do i make a man sit down?
« Reply #16 on: 05 Apr 2004, 14:16:13 »
well. indeed there's an easier way  to let several units do exactly the same thing (means: using the same script)  ;D

As i guess, the script Deathwish sent you, is written for the unit "man" as he not gives any variables from the exec command (don't care, sounds more complicated as it is).

So you can modifiy the sitdown.sqs. Open it with CHOFPSE (which you have installed now, i hope)

at the very top of this script, add this line:

_man = _this select 0

next step, read through the rest of script and replace every "man" in it with "_man" (without quotes of course  ;) )

When done so far, save the script, leave the name as it is (sitdown.sqs)

Name your loons you want to make sit man1, man2, man3 and so on...
in theyr init line put:

[man1] exec "sitdown.sqs"
[man2] exec "sitdown.sqs"
...and so on...i bet you see the point

i hope it works all for you...good luck

max_killer_payne

  • Guest
Re:how do i make a man sit down?
« Reply #17 on: 05 Apr 2004, 15:47:31 »
Yeah, myke has explained it well here. I didnt want to tell you this way in case you got confused with all the commands ??? after all, you have just started scripting and it aint easier