Home   Help Search Login Register  

Author Topic: some help please :(  (Read 4190 times)

0 Members and 1 Guest are viewing this topic.

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:some help please :(
« Reply #15 on: 03 Nov 2003, 23:28:29 »
Yes, I did forget that, macguba ;D :-[

And to answer your question sabreblade, _killer is the person who will wack the person to be killed (_killed).
You could call the killer meKill, and the victim meDie and then exec the script like this: [meKill,meDie] exec "Strike Script.sqs". (don't forget to save the script as StrikeScript.sqs in your mission's directiory)

Unfortunatly i don't have enough room to explain what all of these functions mean and how to use them, but as macguba suggested,
Quote
If you're not familar with this stuff read snYpir's Friendly Intro to Code snippets and also Johan Gustafsson's Scripting Tutorial.
.

i hope all this info helped.
Cheers,  :cheers:sabreblade
Tyger

And thax for the reminder, macguba  :)
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

sabreblade

  • Guest
Re:some help please :(
« Reply #16 on: 06 Nov 2003, 20:35:33 »
sorry but the "  [gunner join spotter]    "   bit of the init field doesn't work. i think it may have the wrong syntax or something.

Also even if i put the spotter already on his group but put his special to none(so thta he's somehwere else but wont move but still be in the gunner's group), the machine-gunner wont shoot any1 unless the target is running! is there a script or summit i could use for this?

i know if i did this properly it'd work so thanks and i haven't even read the script stuff but i'm just about to.  thx anyway
SB   ???

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:some help please :(
« Reply #17 on: 06 Nov 2003, 22:12:52 »
I haven't checked back through the thread but try

[gunner] join spotter

You should ALWAYS check the syntax of a command in the command ref before, during and after using it.   :)
Plenty of reviewed ArmA missions for you to play

sabreblade

  • Guest
Re:some help please :(
« Reply #18 on: 09 Nov 2003, 20:51:13 »
the
[gunner] join spotter
also has the wrong syntax. it expects an array like:
[gunner1,gunner2] join spotter
and that doesn't work either. how do you call a load of people a group? is the group just called the commander's name? or do you call the group a separate name?

thx for helping me so far  ;)
SB

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:some help please :(
« Reply #19 on: 10 Nov 2003, 00:02:24 »
An array can have just one member.   ;D ;D ;D

To name a group write this in the init field of the group leader

grpName = group this

Don't confuse this with the setGroupId command, which just defines the name used in radio chatter.   Alpha Green and so on.
Plenty of reviewed ArmA missions for you to play

sabreblade

  • Guest
Re:some help please :(
« Reply #20 on: 10 Nov 2003, 20:17:43 »
thx ;D
i really need to read up on the tutorials. i have comref and so on but the ones that will help me well when using stuff like "strokegun" i haven't got. gonna get em wen i ahve the time and maybe when i get them i wont have to ask SOOOOOOOOO many questions  :)

sabreblade

  • Guest
Re:some help please :(
« Reply #21 on: 12 Nov 2003, 21:44:12 »
the machine guner still wont open fire even if i put the spotter right near the enemy!!!
PLZ help and thx in advance.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:some help please :(
« Reply #22 on: 12 Nov 2003, 22:59:52 »
Tell us more.     What exactly have you done?    Are you using the reveal command?    What do you mean "won't open fire"?     Does he have a clear shot?    At what range?   What is his skill level yadda yadda yadda
Plenty of reviewed ArmA missions for you to play

sabreblade

  • Guest
Re:some help please :(
« Reply #23 on: 13 Nov 2003, 19:53:41 »
sorry, i was in a rush but i worked out my own way now which works wonders  :)

sry it was brief. still on the strokegun thing but i think i can do without it.

i was wondering how you make an explosion to appear out of nowhere. like on the one in the single mission list. the one called:  "underhill" i'd like an explosion to appear out of nowhere as if its an artillery shot or something.

another thing, is there any way to make a unit invisible?? it would really help. or if you can't could you make a trigger which acts as a unit in a  group to tell a commander who is far away that there is an enemy nearby??

id be grateful if you could help  :)

sabreblade

  • Guest
Re:some help please :(
« Reply #24 on: 14 Nov 2003, 20:01:04 »
    sry, 1 more thing. is there an easy way to work out the co-ordinates for a place to put a man on using the setpos command? sry if its brief but i gotta wash up  :)

KyleSarnik

  • Guest
Re:some help please :(
« Reply #25 on: 14 Nov 2003, 21:00:11 »
Yep, place a game logic or an invisable H where you want the guy to get setposed to, and name it pos1. Now you use: guy1 setpos (getpos pos1)

sabreblade

  • Guest
Re:some help please :(
« Reply #26 on: 14 Nov 2003, 21:38:46 »
thx kyle

invisible units? game logics that act as soldiers and can tell commanders where enemies are?

 OFP is soooo confusing sometimes (and so am i, if ure wondering wot i mean by this) the thing is, i'm only scratching the outside, i haven't even touched scripting or modding yet  :(   second to last post to get an idea if you wanna help me.  

thanks AGAIN for all ure help guys, just wish i was advanced enuf to help yo as well  :)

SB

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:some help please :(
« Reply #27 on: 15 Nov 2003, 12:57:28 »
just curious, did ya use my script? for stroke gun?
If not Then, make a script like this:

Code: [Select]
_killer = _this select 0
_killed = _this select 1

_killer action ["Stroke Gun"]
~2

_killed setDammage 1


save this as StrikeScript.sqs in your mission folder.
To see everyting, go back to the top. I posted earlier on this subject, so maybe that will help you figure it owut.

Cheers
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

sabreblade

  • Guest
Re:some help please :(
« Reply #28 on: 15 Nov 2003, 17:50:51 »
    hi tyger, i haven't used that script cos i can't do scripts yet  :) haven't read the snYper's intro to scripting or whatever its called because i've had no real need for it. when i get time to read the scripting stuff i might try ure script.

do i just right that stuff in notepad or wordpad, name it then put it into teh mission folder?

SB

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:some help please :(
« Reply #29 on: 15 Nov 2003, 21:11:44 »
Quote
do i just right that stuff in notepad or wordpad, name it then put it into teh mission folder?

Basically, yes.   That's pretty much all there is to scripting.   But have a quick look at snYpir's tute and also Johan Gustafsson's Scripting Tutorial before you do, it'll save you time and trouble.
Plenty of reviewed ArmA missions for you to play