Home   Help Search Login Register  

Author Topic: Just small questions?  (Read 6516 times)

0 Members and 2 Guests are viewing this topic.

Offline GW

  • ofp cadet
  • Members
  • *
  • The great Himalaya
Re: Just small questions?
« Reply #15 on: 20 Sep 2010, 05:21:22 »
I try this advice,but find one bug,if driver get killed of ural in way.than units will stay inside the truck and never come out.
Be happy.
ofp die-hard fan for whole life

Offline RKurtzDmitriyev

  • Former Staff
  • ****
Re: Just small questions?
« Reply #16 on: 20 Sep 2010, 14:25:15 »
Ah, yes. You might be able to solve that with scripting, but it depends on what you want the remaining men in the truck to do. Do you want them to disembark? Do you want them to continue the patrol somehow?
The OFP Editing Center wishes to remind you that the faithful COMREF will never threaten to stab you and, in fact, cannot speak.
However, in the event that it does speak, you are encouraged to heed its advice. ;)

Offline GW

  • ofp cadet
  • Members
  • *
  • The great Himalaya
Re: Just small questions?
« Reply #17 on: 21 Sep 2010, 14:28:29 »
i want that driver of cargo unit,not a single unit. :yes:
Be happy.
ofp die-hard fan for whole life

Offline RKurtzDmitriyev

  • Former Staff
  • ****
Re: Just small questions?
« Reply #18 on: 21 Sep 2010, 14:30:09 »
I can't understand what you just wrote. Are there words missing?
The OFP Editing Center wishes to remind you that the faithful COMREF will never threaten to stab you and, in fact, cannot speak.
However, in the event that it does speak, you are encouraged to heed its advice. ;)

Offline GW

  • ofp cadet
  • Members
  • *
  • The great Himalaya
Re: Just small questions?
« Reply #19 on: 30 Oct 2010, 10:43:00 »
is there a way to add soldiers  one by one  to side by radio anytime.
i mean when we call radio,soldier will get present there immediately wherever i was.
Be happy.
ofp die-hard fan for whole life

Offline RKurtzDmitriyev

  • Former Staff
  • ****
Re: Just small questions?
« Reply #20 on: 31 Oct 2010, 15:24:08 »
I can't quite understand. But to start with, make a radio trigger that will execute the following script:

Code: [Select]
soldier1 move getpos player
exit

soldier1 will be the name of the person you want to move.
« Last Edit: 31 Oct 2010, 15:51:59 by bedges »
The OFP Editing Center wishes to remind you that the faithful COMREF will never threaten to stab you and, in fact, cannot speak.
However, in the event that it does speak, you are encouraged to heed its advice. ;)

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Just small questions?
« Reply #21 on: 31 Oct 2010, 15:55:36 »
Do a search for the createUnit command, and maybe the keyword "spawn".

Offline GW

  • ofp cadet
  • Members
  • *
  • The great Himalaya
Re: Just small questions?
« Reply #22 on: 31 Oct 2010, 20:32:16 »
i making a sp mission,
i played a mission some year ago.
where i can add 3 soldier to my side anytime anywhere near to my position.
its like a magic.
Be happy.
ofp die-hard fan for whole life

Walter_E_Kurtz

  • Guest
Re: Just small questions?
« Reply #23 on: 02 Nov 2010, 23:39:01 »
It depends how many times this is to be done. If it is to be many times then, as bedges says, you will have to "spawn" them.

To do it just once needs less scripting:
 1. Place a trigger: Radio Alpha, Repeatedly and On Activation: [] exec "help_me.sqs"

 2. Place the three extra soldiers somewhere far away in a separate group. Give them names: soldier1, soldier2 and soldier3.

 3. Create the script as a text file: help_me.sqs
Code: (help_me.sqs) [Select]
? (count units player) > 9 : exit

1 setRadioMsg "NULL"
[soldier1, soldier2, soldier3] join (GrpNull)
[soldier1, soldier2, soldier3] join player

soldier1 setPos getPos player
soldier2 setPos getPos player
soldier3 setPos getPos player

The script first checks if there are nine or fewer units in the players group, since 3 are to be added and the maximum in any group is 12.
It then hides the radio option, assuming that you used Radio Alpha. If you used something else, you will have to change the number in the setRadioMsg line.
Finally the troops are teleported magically to the players location.

Offline GW

  • ofp cadet
  • Members
  • *
  • The great Himalaya
Re: Just small questions?
« Reply #24 on: 20 Dec 2010, 03:23:44 »
Is there a easy way to assign night googles to whole group(12) of soilders.
Be happy.
ofp die-hard fan for whole life

Offline savedbygrace

  • Intel Depot
  • Administrator
  • *****
  • Be swift to hear...slow to speak...slow to wrath.
Re: Just small questions?
« Reply #25 on: 20 Dec 2010, 06:57:03 »
{_x addweapon "NVgoggles"} foreach units groupname




Offline GW

  • ofp cadet
  • Members
  • *
  • The great Himalaya
Re: Just small questions?
« Reply #26 on: 17 Apr 2011, 09:37:42 »
i played a mission some year ago in which soldiers who died get extinguished,can anyone tell me script of this.
Be happy.
ofp die-hard fan for whole life

Walter_E_Kurtz

  • Guest
Re: Just small questions?
« Reply #27 on: 19 Apr 2011, 01:55:31 »
If you mean having dead bodies disappear, here's one way.

Offline GW

  • ofp cadet
  • Members
  • *
  • The great Himalaya
Re: Just small questions?
« Reply #28 on: 20 Apr 2011, 14:33:04 »
@Walter_E_Kurtz

its showing distance error of 300.
Be happy.
ofp die-hard fan for whole life

Walter_E_Kurtz

  • Guest
Re: Just small questions?
« Reply #29 on: 20 Apr 2011, 23:37:10 »
Make sure the notes are removed by deleting the "<---" and everything that comes after.