Home   Help Search Login Register  

Author Topic: A few questions...  (Read 1181 times)

0 Members and 1 Guest are viewing this topic.

Anthrid

  • Guest
A few questions...
« on: 30 Apr 2003, 07:26:40 »
Hello. can anyone tell me the commmands to a few things? for example,

^How do you light a streetlamp?
^If possible, how do you put things on tables
^again if possible, make people sit on a chair (doubt that you can)
^give me a step by step unit POW command (the one i have doesn't clearly explain  :-\
^how to remove weapons from soldiers

Also, what folder do you put the scripts (.sqs) in?

I would really appreciate if you can answer some of these  :help:       :thumbsup:      thanks

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:A few questions...
« Reply #1 on: 30 Apr 2003, 11:04:28 »
Welcome to the forum Anthrid!

For your first three questions, the answers are in the forum - use the forum search function to find them.  Or perhaps some kind soul with more time than I have at the moment will tell you.    Useful commands are

- switchLight, object
- setPos
- playmove/switchmove (animation list in Tutorials)

For the POW question, search the FAQ - I'm pretty sure there's an example in there.

For removing weapons, you need to put commands in the unit's init line.    The commands all start with "add..." or "remove ...".   Look them up in the online Command Reference in the Ed Depot.  (It's in the menu bar on the left hand side, near the top and is called Commands I think.)

For where to put scripts and other files read macguba's Guide to Mission Editing for Beginners, in Ed Depot - Tutorials - Getting started.    myscript.sqs files go in the mission folder next to the mission.sqm, but the tute will give you more detail.
Plenty of reviewed ArmA missions for you to play

Philas

  • Guest
Re:A few questions...
« Reply #2 on: 30 Apr 2003, 16:56:47 »
If you can speak german download this:
http://www.mapfact.net/Zips/Help/Murray2.zip

(PS: This is an Editing Tutorial)

Philas

  • Guest
Re:A few questions...
« Reply #3 on: 30 Apr 2003, 16:58:22 »
In this Editing Tutorial there are the Answers to all your Questions!!

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:A few questions...
« Reply #4 on: 30 Apr 2003, 22:17:27 »
Ouhm. Great Philas. :D But in case he doesn't speak german that dandily...

1) If you've got Resistance, the rumours say you can click a little button called "Show ID's", which will give you the "name" of all in-game objects. From there I gather you should be able to find the streetlamp in question, and then create a trigger which uses the command macguba mentions. Just search the Ed.Depot "Commands" section :thumbsup:
If you haven't got resistance, it suddenly got a whole lot harder. If that's the case, call again and we'll sort you out.

2) You need to use setpos, as mac said. More specifically this little string:

objectName setpos [(getpos objectName select 0), (getpos objectName select 1), desiredHeight ]

you could logically come to this thing too by studying the setpos command, but honestly only Sefe or Dinger or someone would come up with somethin' like that  ::) so there you are. Explanation: objectName is the name of the object, say a phone. desiredHeight is the height, in meters, above ground. Now this can get a little itchy, so be ready to use a lot of patience and decimal numbers  ;)

Just put it in the unit field of the object, and you can replace all the objectName with just "this" (without the quotes).

#3,4,5

 :P no time. Someone else up for it?  :-X

Happy editing nonetheless.

Wolfrug out.
« Last Edit: 30 Apr 2003, 22:19:44 by Wolfrug »
"When 900 years YOU reach, look as good you will not!"

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:A few questions...
« Reply #5 on: 01 May 2003, 01:43:19 »
@ Mac

Rofl - its da new way of makin ppl check da FAQ ::) ;D

@ Anthrid

3 -  u can do it :P

put a chair named chair X nd make unit w/ da anim "onchair" and put it on it ;D

4 - setcaptive command

5 - removeallweapons this in da init line

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Anthrid

  • Guest
Re:A few questions...
« Reply #6 on: 01 May 2003, 07:44:08 »
I did some FAQ search and still didn't get some of my answers cleared  :(    

If anyone cna just answer this instead of telling meto search, i'll appreciate it. For example,

Prisoner command...i know how to do the setcaptive, but how do i put it so that when he leaves the area, he gets shot at?

also the streetlamp, the FAQ didn't help much, can someone help?

Thanks for all the help, and someone please PM me on how to do those things  :wave:  

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:A few questions...
« Reply #7 on: 01 May 2003, 08:15:44 »
make a not present triger groupin da unit in da on activision put

unitname setcaptive false ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:A few questions...
« Reply #8 on: 01 May 2003, 14:19:42 »
If we reply by PM then other people who might have the same problem can't see the answer.

Quote
Useful commands are

- switchLight, object

If you understand these commands (and have experimented with the Show IDs button in the Editor, which I forgot to mention before) then you know how to work streetlamps.    If you don't understand them, then tell us what the problem is and we'll be glad to help.  ;)    

It's always worth checking commands in both the online official command ref and the unofficial command ref, though I think these are Resy commands and so won't be in the unofficial, which is too old.
Plenty of reviewed ArmA missions for you to play

Philas

  • Guest
Re:A few questions...
« Reply #9 on: 02 May 2003, 09:17:08 »
Answer Streetlamp:
write in the Init of the Streetlamp:

this inflame true;