Home   Help Search Login Register  

Author Topic: 2 simple questions  (Read 1511 times)

0 Members and 2 Guests are viewing this topic.

Trasher

  • Guest
2 simple questions
« on: 01 Mar 2004, 18:47:22 »
i am a real n00b but plz help me

ok
1:how can i make more than 1 objective i only can make "move in kill all missions"
2:how can i make a ai stand in a lookout tower.

plz help me

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:2 simple questions
« Reply #1 on: 01 Mar 2004, 18:59:25 »
1.  Read snYpir's tutorial "How to use objectives and init.sqs."  A good general tute will probably help too.    Conceptually, objectives are associated with triggers.   The objective is expressed as the trigger conditions:  when the conditions are met the trigger fires and the objective is completed.

2.    Place the loon on top of the tower in the Mission Editor.   In his init field write

this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) + 6]; this setUnitPos "up"

You'll have to play with the 6 until you get the right number.


For all noobs, I recommend you read snYpir's OFPEC Guide: making missions and my own macguba's guide to mission editing for beginners.   Both have a lot of useful tips including suggestions on other good tutorials.   All available in the Editors Depot.

And in case nobody has said it yet ...

Welcome to the forum!
« Last Edit: 01 Mar 2004, 19:00:51 by macguba »
Plenty of reviewed ArmA missions for you to play

Trasher

  • Guest
Re:2 simple questions
« Reply #2 on: 01 Mar 2004, 19:03:15 »
thx macguba

but what is a loon  
im just wondering  

where do i find snypirs guide ??
« Last Edit: 01 Mar 2004, 19:04:45 by Trasher »

Trasher

  • Guest
Re:2 simple questions
« Reply #3 on: 01 Mar 2004, 19:08:09 »
the setpos thing didnt work

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:2 simple questions
« Reply #4 on: 01 Mar 2004, 19:08:28 »
loon =  AI unit = soldier = guy = dude = moron

You get all this stuff in the Editors Depot.   Link at the top of this page.  Look for Tutorials - Getting Started.    There's lots of good stuff in there, written especially for people like you.
Plenty of reviewed ArmA missions for you to play

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:2 simple questions
« Reply #5 on: 01 Mar 2004, 19:09:52 »
Quote
the setpos thing didnt work

How do you know?
Plenty of reviewed ArmA missions for you to play

Trasher

  • Guest
Re:2 simple questions
« Reply #6 on: 01 Mar 2004, 19:10:41 »
i tested it i get some error

Trasher

  • Guest
Re:2 simple questions
« Reply #7 on: 01 Mar 2004, 19:11:56 »
it was something with expected nothing

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:2 simple questions
« Reply #8 on: 01 Mar 2004, 19:13:46 »
Post the exact error message here.   You might need to repeat it a few times till you can write down the whole message precisely.
Plenty of reviewed ArmA missions for you to play

Trasher

  • Guest
Re:2 simple questions
« Reply #9 on: 02 Mar 2004, 11:33:52 »
i rewrited it a little and now it works ..
 
im not a totaly n00b after all   :P

but thx for the help macguba

Trasher

  • Guest
Re:2 simple questions
« Reply #10 on: 02 Mar 2004, 12:44:09 »
ít was only snypirs guide thats worked so can you email yors or something macguba ??? that would help me alot  :)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:2 simple questions
« Reply #11 on: 02 Mar 2004, 14:50:06 »
It's here, about halfway down.  The zip is only 12k and the download worked when I tried it.
« Last Edit: 02 Mar 2004, 14:51:16 by macguba »
Plenty of reviewed ArmA missions for you to play

Trasher

  • Guest
Re:2 simple questions
« Reply #12 on: 02 Mar 2004, 14:52:55 »
ok i try it .. buy the way this text "Side = West
Class = Men
Unit = Officer
Name = unit1
Init field = this SetCaptive true"
 should should make you a captive but i gets an error "invalid operator class"

thx for the hlp macguba
« Last Edit: 02 Mar 2004, 16:02:43 by Trasher »

MGeo

  • Guest
Re:2 simple questions
« Reply #13 on: 02 Mar 2004, 22:26:50 »
Hey Thrasher.
It is easy to setCaptive.

Here is how also you can do.

Make a trigger to be activated by West.

and set this on activation:
unit1 SetCaptive true;
or
SetCaptive unit1;

That should work.

I aslo figured out how to make a AI surrender and the others not to shoot.
It is very simple. *Posting in the scripts section.*

Trasher

  • Guest
Re:2 simple questions
« Reply #14 on: 03 Mar 2004, 14:00:10 »
thx MGeo

thats was real helpfull  :)

now its works