DavisProg
  • DavisProg
  • 62% (Friendly)
  • Private Topic Starter
14 years ago
Hi. I am still working with C&C Generals World Builder.

Here comes my script:
***IF***
>>>Unit "Rocket1" has been attacked by a(n) "EMPPulseBomb"<<<

***THEN***
Unit "Rocket1" changes the value of flag Object Flag: Enabled to FALSE
Unit "Rocket1" changes the value of flag Object Flag: Powered to FALSE

OK, let's make things clear. The "Rocket1" is the baikonur rocket.
And a EMP pulse bomb won't effect it because its a civilian building.
So i put this script to make the rocket look better after being attacked by EMP.
But the problem is...
The ***IF*** part seemes not quite correct.
Please help me out with the:

***IF***
Sponsor
i^love^mixery
14 years ago
this workaround is pretty pathetic but it works:

its hard to explain how it works, just check the scripts.

what i have basically done:
ive put an indestructible, immovable, unselectable listening outpost under the boikanur rocket.

then i use this script:

*** IF ***
     Unit 'boi workaround' sees a(n) 'EMPPulseBomb' belonging to Player '<This Player>'.
*** THEN ***
   Unit 'boi' changes the value of flag Object Flag: Enabled to FALSE.
   Unit 'boi' changes the value of flag Object Flag: Powered to FALSE.
  Set timer 'Expire' to expire in 30.00 seconds.

and another script:


*** IF ***
    Timer 'Expire' has expired.
*** THEN ***
   Unit 'boi' changes the value of flag Object Flag: Enabled to TRUE.
   Unit 'boi' changes the value of flag Object Flag: Powered to TRUE.

to fake the power loss.

it works fine lol   emp boi tes.zip (3kb) downloaded 1 time(s).
DavisProg
  • DavisProg
  • 62% (Friendly)
  • Private Topic Starter
14 years ago



*** IF ***
     Unit 'boi workaround' sees a(n) 'EMPPulseBomb' belonging to Player '<This Player>'.

i^love^mixery wrote:



Well, the EMP pulse bomb is supposed to belong to whom?
Can i put ?

Or should I put 8 scripts with:

***IF***
Unit 'boi workaround' sees a(n) 'EMPPulseBomb' belonging to Player 'player0'.

And another:
***IF***
Unit 'boi workaround' sees a(n) 'EMPPulseBomb' belonging to Player 'player1'.

And another:
***IF***
Unit 'boi workaround' sees a(n) 'EMPPulseBomb' belonging to Player 'player2'.

And so on...
i^love^mixery
14 years ago
what about ?

i have no idea what your map looks like so how should i know..?

if in doubt you can surely just use player0-player7