Home   Help Search Login Register  

Author Topic: Affect whole side  (Read 3371 times)

0 Members and 1 Guest are viewing this topic.

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #15 on: 27 Mar 2005, 21:03:26 »
strange.. This really doesn't make sense I'm going to try again

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #16 on: 27 Mar 2005, 21:06:13 »
I get an unknown operator error msg.. It detects " and halts the command :( I think its my ver hee hee

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Affect whole side
« Reply #17 on: 27 Mar 2005, 21:15:13 »
You know you really are crippling yourself sticking with version 1.0

Why don't you download the FREE patches to take you to version 1.46?

There are a lot of extra commands and official vehicles added in the updates that you can't use.

In the long run it makes sense to update.


Planck
« Last Edit: 27 Mar 2005, 21:15:48 by Planck »
I know a little about a lot, and a lot about a little.

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #18 on: 27 Mar 2005, 21:20:42 »
I know its free. I know there's lots of goodies.
And I will get all the bells and whistles for the sequel. But for now its 1.0 all the way. I've been working on this campaign for about a year. Now near the end suddenly I'm gonna overhaul? Forget it it's going to add another 6 months to production time. Now, if this meant I was going to distribute something of quality of something not then yes I would upgrade. But I've put a lot of quality in this campaign, and I only need the odd command that is not avaliable. 9/10 times there's a work around and when there isn't usually its not necessary or I find a better way around it.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Affect whole side
« Reply #19 on: 27 Mar 2005, 21:28:35 »
Let me see now, you have been using the command allowFleeing.......correct?

EDIT: I got the command wrong, but you know what I mean....I meant allowDammage.

When you release your campaign, if you do that is, everone who does not have version 1.0 will not be able to use that command because it has been removed in later versions.

I don't know about any other older commands that you have used that might have a similar effect.

I'll try to 'think' of a way around it.


Planck
« Last Edit: 27 Mar 2005, 21:32:09 by Planck »
I know a little about a lot, and a lot about a little.

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #20 on: 27 Mar 2005, 21:32:13 »
Oh don't worry about that.. Its only 1 or 2 missions out of 50 that use it.. And besides.. Why don't I just remove the original campaign and just leave the raw game with my campaign and distribute it that way ...

Look I know it sounds piratish, but everyone here has OFP and besides.. I don't really see pushing OFP 1.0 with the original campaign deleted as piracy compared to the distance OFP has come. Anyway, I'm sure this is going to raise all type of controversy but understand. I just like to create, and I like to pass on to other people. So don't see it as a warez statement, rather as just an error free way of distributing my campaign

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Affect whole side
« Reply #21 on: 27 Mar 2005, 21:46:27 »
You could try making the trigger as usual, but put:

[] exec "nameofscript.sqs"

in the On Activation field.

Then make the script with the contents:

"_x setcombatmode ""red""" foreach list XXX
exit

Don't forget to name the trigger and replace the XXX with the name you use.

Put this script in your mission folder.


Planck
« Last Edit: 27 Mar 2005, 21:47:08 by Planck »
I know a little about a lot, and a lot about a little.

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #22 on: 27 Mar 2005, 21:58:40 »
Yah.. Sounds good I'm gonna try it in 30mins. Thanks for all the quick responses btw!

So a command that isn't recognized inside the editor may sometimes be recognized if read from a sqs file?


Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Affect whole side
« Reply #23 on: 27 Mar 2005, 22:00:58 »
Sometimes   ;D


Planck
I know a little about a lot, and a lot about a little.

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Affect whole side
« Reply #24 on: 28 Mar 2005, 08:30:20 »
You mean {} don't work with YOUR version?

Why not setting a variable: VariableName="red" (type somewhere) then after that "_x setCombatMode VariableName" forEach list xxx

(VariableName="red"; "_x setCombatMode VariableName" forEach list xxx)

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #25 on: 28 Mar 2005, 14:54:34 »
YOU BASTARD!

That's great! I can do the same with the inflame for the unlit campfire detection. I can't believe I didn't think of that. Great thinking bud.. I'm gonna test it soon and let you guys know 8)

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #26 on: 29 Mar 2005, 01:56:36 »
bleh. A great though my friend but it simply doesn't work.

I don't understand why setcombatmode "red" can't affect every unit on the map. and when I do it the variablename way the command passes.. But the soldiers don't react.

Offline Blanco

  • Former Staff
  • ****
Re:Affect whole side
« Reply #27 on: 29 Mar 2005, 02:49:34 »
euh...is your trigger activated by a side?

Search or search or search before you ask.

Offline Pr0ph3t

  • Members
  • *
Re:Affect whole side
« Reply #28 on: 29 Mar 2005, 20:36:45 »
of course d00d

Offline Peter_Bullet

  • Members
  • *
  • "The evil that men do lives on and on"
Re:Affect whole side
« Reply #29 on: 31 Mar 2005, 14:55:13 »
Maybe not putting them in a same trigger? I hope you know that the setCombatMode affects wether the unit will fire or not. It doesn't make him put his gun on his back or his hand.

Maybe trying a script. (I'm sure you know how to do it but I write it anyway)

_i=0
_array = list trigger
_count = count _array

#Loop
(_array select _i) setCombatMode "red"
_i = _i + 1
?_i < _count: goto "Loop"
exit