Home   Help Search Login Register  

Author Topic: hmm help with mission :o  (Read 615 times)

0 Members and 1 Guest are viewing this topic.

PimpD

  • Guest
hmm help with mission :o
« on: 10 Sep 2003, 20:08:44 »
Hiya ! :')

Well my problem is...

Im making an mission when U.S forces have mission to take out an town guarded by 6 East guys :') , well I wanna make an suprise.... I want that when the  U.S forces get there they only see 6 guys...

BUT! when they fire a bullet, I want 2-3 east guys rnning out of each house...

How make it possible? that if someone fire a trigger makes so loads of east guys run out of an house?

And, How make so when the U.S forces have captured the town...
They got an mission to go to another base for pick up...
And how can I make an trigger that activates when the U.S forces get in it and then a helicopter gets there pick them up and the mission ends?  ???

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:hmm help with mission :o
« Reply #1 on: 10 Sep 2003, 22:14:20 »
Use the eventhandler "fired".    The guards will be on hold waypoints inside the house, with the waypoint synched to a switch trigger which is fired via the event handler.

For making the new objective appear read snYpir's tute "how to use objectives and init.sqs".

To control the chopper you need more switch triggers.   If you are not familiar with them check the tute in the Ed Depot or search the forum, this question comes up all the time in various forms.
Plenty of reviewed ArmA missions for you to play

PimpD

  • Guest
Re:hmm help with mission :o
« Reply #2 on: 12 Sep 2003, 21:09:21 »
k  :o

I don't understand  ;D


"me stipid"  :P

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:hmm help with mission :o
« Reply #3 on: 13 Sep 2003, 01:36:14 »
On the contrary, please accept my apologies for not writing a clearer answer.

To solve your problem - which is very solvable - you need to learn about a bunch of things.   Once you understand the things then it will all be very easy.   The things are:-

- triggers which are type "switch".   There is a specific tute in the Ed Depot, plus good coverage in the general trigger tutes and lots of helpful posts in the forum - use the forum search function (button near the top of this page).     They are generally known as switch triggers.

- There is a tute in the Editors Depot called "How to use objectives and init.sqs" (or similar) by somebody called snYpir.   All his tutes are excellent and you could do worse than read them all, but have a go at that one because it's relevant to your question.

- there is a command called "eventhandler".   It's a bit more advanced than the other stuff I've mentioned so leave it till last.   However, it's not difficult to use and will suit your problem very well.   By slightly softening your requirements you can probably do without the eventhandler stuff, but you do need to know snYpir's tute and the switch trigger stuff so go away and learn that.    Look at the official command reference for more info, and search the FAQ and the forum.

If there is anything you don't understand, or if you get stuck, come back here and ask again.  ;)
Plenty of reviewed ArmA missions for you to play

GrimMonkey

  • Guest
Re:hmm help with mission :o
« Reply #4 on: 13 Sep 2003, 01:41:33 »
Sorry, this is a question. I thought it would be good to do it on a topic that somewhat relates to it :).
How can I make it so that  soldiers move from SetUnitPos "down" to up after a period of time has past.
Do note, however, I have tried the most obvious way to do it. I wrote a script. But it has an error like 'typed String, expected Array' (some of you know I'm new to arrays :)). What could it be, I can't make it simpler than that, can I? Here's the script: (It's from memory, I may have left something out :P)

loon1 SetUnitPos "up"

~4

loon2 SetUnitPos "up"

~9

loon3 SetUnitPos "up"

Exit


?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:hmm help with mission :o
« Reply #5 on: 13 Sep 2003, 01:55:29 »
A small script is probably th right way.     However I'm not quite sure what is going wrong.

The error message means that somewhere the game is expecting an array and you've given it a string.     Usually the approximate point in the line of code where the error occurs is marked by a # in the error message.

A string is usually something in quotes

"this is a string"

"M16"    <---- so is this

An array is a group of one or more values

[1,5,4]

getpos loon1     <--- an array because getpos returns an array of the 3 components of a postion:  [x,z,y]
Plenty of reviewed ArmA missions for you to play