OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Osama The One on 05 May 2003, 11:47:46

Title: A newbie in Need
Post by: Osama The One on 05 May 2003, 11:47:46
Hi! I just registered! I am a newbie when it comes to mission editing, so I have some questions:

1. How do you make soldiers/people sit on chairs? I have seen this in cutscenes and I would like to try it out in editing.

2. I am  going to make a mission where the player character is a civilian. How do I make him start with a gun?
Title: Re:A newbie in Need
Post by: SimonRussi on 05 May 2003, 12:03:33
1. You must place him near a chair and use the appropriate switchmove (move)

2. Name your player. In the init.sqs put this:

player AddMagazine Weapon
.
.
player AddWeapon Weapon

All the actions and weapons are listed in various tutorials in the ed depot.

Simon

PS: Welcome to the forums
Title: Re:A newbie in Need
Post by: Osama The One on 05 May 2003, 12:09:47
What is a switchmove? Can someone explain that? I really don't understand all this scripting mumbo-jumbo.
Title: Re:A newbie in Need
Post by: SimonRussi on 05 May 2003, 12:22:58
Switchmove is a script command. The use is:

unitname switchmove movename

It makes the unit named "unitname" plays the action named "movename".

Search the tutorials. You will find a list of all available moves.
Title: Re:A newbie in Need
Post by: macguba on 05 May 2003, 12:48:28
Welcome to the forums Osama the One!   :)  As SimonRussi said, we have a lot of good tutorials here.    There's a whole section devoted to people who are new to mission editing.   The fastest way to learn is to spend some time there. :thumbsup:
Title: Re:A newbie in Need
Post by: punisher on 05 May 2003, 17:33:28
this addweapon "m16";this addmagazine "m16"

put that in the init field

i dont know the chair but here is an example of switchmove:
ttt switchmove "combattocrouch"

name the man ttt
and he will probably kneel
Title: Re:A newbie in Need
Post by: Iwesshome on 05 May 2003, 17:41:39
If you are looking for a combat kneel postion I suggest reading this thread...

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=8498;start=0 (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=8498;start=0)

IW
Title: Re:A newbie in Need
Post by: Tomb on 05 May 2003, 19:09:53



[size=8]Welcome to the sewers of editing, Osama The One[/size]









 8) Have a neat stay here at OFPEC :thumbsup:





Title: Re:A newbie in Need
Post by: Black_Feather on 05 May 2003, 19:20:14
Welcome to the forums Osama.
Title: Re:A newbie in Need
Post by: Tomb on 05 May 2003, 19:27:08
Hey blackie!  ;)

Yanno, that was the only good thing about post counts: anyone could see if a guy was new to editing (or at least to the forums).
Now, I can't welcome anyone anymore - feels bad, it makes me feel rude sort of  ::)
Title: Re:A newbie in Need
Post by: Black_Feather on 05 May 2003, 19:49:16
Yeah its a shame, it does make the forum feel less friendly but you can usually spot new comers, especially when they say things like this

Hi! I just registered! I am a newbie when it comes to mission editing

 ;D
Title: Re:A newbie in Need
Post by: macguba on 05 May 2003, 20:33:49
If I suspect a noob I just click on the name to get their profile, then last 10 posts to see if there are any .... and you can see the date they registered, so if it's today......

Overall its a bit of a pain, but just one of these things I suppose and it is only one or two clicks.
Title: Re:A newbie in Need
Post by: Tomb on 06 May 2003, 10:07:45

ah yes, ah yes, ah yes, the things we do for love  ::) ;D ;D what a great forum!  :-*