Home   Help Search Login Register  

Author Topic: A few questions (scripts and triggers)  (Read 594 times)

0 Members and 1 Guest are viewing this topic.

kahuna7

  • Guest
A few questions (scripts and triggers)
« on: 11 Jul 2003, 06:45:54 »
I have a few questions.  First of all, I am a new member to this board but I have been coming to this message board and this site for a good while.

  1.How to move a group into a vehicle without the vehicle being part of the group or using:

this moveincargo "vehicle name"

  How can I move an entire group without using the above script on each unit?

  2. How can I get a chopper to come pick a group up on a radio command (radio alpha, etc).

  3.  How to get 24 men to eject out of a chinook?

  4.  How to get groups to move somewhere via radio?

  5.  How does the group=this thing work?

  Plz tell me how to do word for word, character for character.  Tell me if I should put a space between something because alpha= group this looks just like alpha = group this on my screen...

Th8x 4 all ur help  ;)
« Last Edit: 11 Jul 2003, 06:46:50 by kahuna7 »

kahuna7

  • Guest
Re:A few questions (scripts and triggers)
« Reply #1 on: 11 Jul 2003, 06:50:23 »
BTW...does anyone know the script to make a guy do pushups?  :D

kahuna7

  • Guest
Re:A few questions (scripts and triggers)
« Reply #2 on: 11 Jul 2003, 10:58:50 »
  Also, how can I make a group preform an action.  Such as sit down or salute (and cancel the salute).

  Also, how do I make a briefing?  I know it involves wordpad...

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:A few questions (scripts and triggers)
« Reply #3 on: 11 Jul 2003, 11:01:47 »
Quote
;---Start----
_unit = _this select 0
_moves = _this select 1

_i = 2

#routine
_unit playmove "FXStandDip"
_i = _i + 1
? _i < _moves : goto "routine"
exit

;---End----

You activate it [unit, amount of push-ups] exec pushup.sqs
example "[dude, 10] exec pushup.sqs"

Found that one for you by searching the forums. The rest I'm gonna leave for you to learn by reading from tutorials because I got to run to work for now  ;)
Not all is lost.

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:A few questions (scripts and triggers)
« Reply #4 on: 11 Jul 2003, 11:03:51 »
http://www.ofpec.com/editors/browse.php?category=1_1  that's for a briefing.html file tutorial by snYpir.

1. unitname moveincargo vehiclename        will work

2. Make a chopper and name it as chopper. Make a trigger activated by radio alpha. Type in the triggers on activation field choppergo = true. Place a waypoint right on top of the chopper and type in it's condition field choppergo. Make a new load waypoint for the chopper at a place where you want the pickup. Make a get in waypoint for your group near the choppers load waypoint. Synchronize them. Make a transport unload waypoint for the chopper and a get out waypoint for your group to a spot where you want to be dropped off.

3. Use this script for both 12 men groups individually or modify the script by typing in an array containing all the units in cargo.
Code: [Select]
_aunits = units [b]_groupname[/b]
_i = 0
_Max = count _aunits

#Here
(_aunits select _i) action ["EJECT",[b]choppername[/b]]
unassignvehicle (_aunits select _i)
_i=_i+1
~1
?_Max>_i:goto "Here"

4. Make a radio trigger and put a  variable = true in it's 'on activation' field. Then make a group and a move waypoint right on top of it and type variable to it's condition field. Make a second waypoint for the group to a place where you want them to move after the radio call.

5. group = this thing works by you typing in a groupleaders init field   mygroup = group this. After done with it the group's name is mygroup.


To get a whole group perform an action try
"_x playmove {fxstanddip}" foreach units mygroup
« Last Edit: 11 Jul 2003, 11:21:31 by Artak »
Not all is lost.

kahuna7

  • Guest
Re:A few questions (scripts and triggers)
« Reply #5 on: 11 Jul 2003, 12:07:56 »
  Th8x 4 ur help Artak... :-*

But on my first question, I need to know how to move a "group" not a unit into a vehicle... :-\

Thank you for your help...

 

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:A few questions (scripts and triggers)
« Reply #6 on: 11 Jul 2003, 14:00:02 »
Ok, I'm not sure about the syntax but here goes.

Name your group typing   mygroup = group this  in the leader's init field
Then use a line something like this
"_x moveincargo vehiclename" foreach units mygroup
Not all is lost.

CLITCOMMANDER

  • Guest
Re:A few questions (scripts and triggers)
« Reply #7 on: 11 Jul 2003, 15:05:57 »
http://www.ofpec.com/includes/download2.php?id=114 Thats a link to a nice script for ejecting a whole group from a heli, i used it and its great.
BTW If u dont wanna name stuff you can do "_x moveincargo vehicle" foreach units group man1.  Using the "_x command will alolow u to do a lot of other things with ur mans whole group.

-=CC=-