Hi, I'm trying to make a short animation at the start of my game where an exploding battlecruiser crash lands. However, this should then become a unit which players will be able to move to and 'purchase' items from. There is a model in the campaign that works well for this purpose, "Battlecruiser Hero - Helios (Crashed)".
The issue is this; the model should land in a particular spot, however the death/dead animations cause the ships visual location to be shifted from where other units 'see' the ship (right clicking the ship with a friendly unit causes it to move to the spot the ship hit when it crashed, not where it is now).
So I guess the question is, is there a way to make commands which target the wrecked battlecruiser (e.g. follow) point to a different location? Or does anyone know a better fix for this problem?
The code I have (if it helps) is essentially:
Unit-Create1BattlecruiserHero-Helios(Crashed)forplayer0at(Top-rightof(Playablemaparea)bounds)facingRescueSpawn(NoOptions)Variable-SetTheRescue=(Lastcreatedunit)Unit-ChangeTheRescueheightto32.0over0.0secondsAnimation-PlayStandanimationfor(ActorforTheRescue)asDefault,usingNoOptionsoptionsandDefaultTimeblendtimeUnit-OrderTheRescueto(Movetargeting(RescueSpawnoffsetby8.0towards(Top-rightof(Playablemaparea)bounds)))(ReplaceExistingOrders)------- Offset by 8 to make it end up closer to where it should -------Unit-ChangeTheRescueheightto0.0over7.0secondsGeneral-Wait7.0GameTimesecondsAnimation-PlayDeathanimationfor(ActorforTheRescue)asDefault,usingNoOptionsoptionsandDefaultTimeblendtimeGeneral-Wait3.5GameTimesecondsAnimation-PlayDeadanimationfor(ActorforTheRescue)asDefault,usingPlayForeveroptionsandDefaultTimeblendtime
Where the map size is 64x64 and RescueSpawn is a point close to the centre of the map.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi, I'm trying to make a short animation at the start of my game where an exploding battlecruiser crash lands. However, this should then become a unit which players will be able to move to and 'purchase' items from. There is a model in the campaign that works well for this purpose, "Battlecruiser Hero - Helios (Crashed)".
The issue is this; the model should land in a particular spot, however the death/dead animations cause the ships visual location to be shifted from where other units 'see' the ship (right clicking the ship with a friendly unit causes it to move to the spot the ship hit when it crashed, not where it is now).
So I guess the question is, is there a way to make commands which target the wrecked battlecruiser (e.g. follow) point to a different location? Or does anyone know a better fix for this problem?
The code I have (if it helps) is essentially:
Where the map size is 64x64 and RescueSpawn is a point close to the centre of the map.