Posted by: DavisProg - Monday, November 14, 2011 4:06:43 PM
Hi. I am still working with C&C Generals World Builder.
Here comes my script:
[code]***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
[/code]
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***
Posted by: i^love^mixery - Monday, November 14, 2011 5:22:21 PM
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:
[code]
*** IF ***
Unit 'boi workaround' sees a(n) 'EMPPulseBomb' belonging to 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.
[/code]
and another script:
[code]
*** 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.
[/code]
to fake the power loss.
it works fine lol [ATTACH]959[/Attach]
Posted by: DavisProg - Monday, November 14, 2011 5:59:04 PM
[quote=i^love^mixery]
[code]
*** IF ***
Unit 'boi workaround' sees a(n) 'EMPPulseBomb' belonging to Player ''.
[/code]
[/quote]
Well, the EMP pulse bomb is supposed to belong to whom?
Can i put ?
Or should I put 8 scripts with:
[code]***IF***
Unit 'boi workaround' sees a(n) 'EMPPulseBomb' belonging to Player 'player0'.
[/code]
And another:
[code]***IF***
Unit 'boi workaround' sees a(n) 'EMPPulseBomb' belonging to Player 'player1'.
[/code]
And another:
[code]***IF***
Unit 'boi workaround' sees a(n) 'EMPPulseBomb' belonging to Player 'player2'.
[/code]
And so on...
Posted by: i^love^mixery - Monday, November 14, 2011 7:23:56 PM
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